I'm trying to plot some data coming from the sensor on banana pi. For simplicity of development I use python and wxWidget. To plot the data I use matplotlib library. It's doing ok on my laptop, but when I launch it on banana pi, the plot is drawn very slow.
def on_redraw_timer(self, event):
print datetime.datetime.now()
self.data.append(getCurrentValue())
self.draw_plot()
This code is executed every 100 ms and this is what it outputs
2016-03-06 10:51:47.530607
2016-03-06 10:51:47.880988
2016-03-06 10:51:48.211054
2016-03-06 10:51:48.538298
2016-03-06 10:51:48.864935
2016-03-06 10:51:49.190108
2016-03-06 10:51:49.514287
2016-03-06 10:51:49.851634
2016-03-06 10:51:50.178744
2016-03-06 10:51:50.503762
So it takes 300 ms to draw the plot. Which is unacceptable. Is it possible to fasten the drawing speed? Or should I use some other libraries?
Thank you!