How to plot live data fast?

Viewed 16

I have some sensor input that arrives through the serial port around seven times a second. I need to plot that in nine graphs. So I wrote a program using matplotlib and lists which was horrendously slow - I could get 1-2 updates a second, not nearly fast enough.

So I started to consider numpy. According to this, using numpy arrays should be a lot faster than lists, especially if one declares a fixed size from the get to. So I asked this question about how to go about that. That question now has four downvotes and a single comment that using numpy won't change anything.

SO - how do I improve the update rate on my plot? This is on an 11th Gen Intel® Core™ i7-1165G7 @ 2.80GHz × 8 - is it unrealistic to expect this plot to update e.g. 10-20 times a second?

Is python just too slow for something like this? If so, what should I use instead?

0 Answers
Related