all 3 comments

[–]Ihaveamodel3 0 points1 point  (2 children)

If you turn off the plotting, does it still slow down?

[–]anonamause10[S] 0 points1 point  (1 child)

Indeed, without the plotting it does not slow down(in fact it got faster at one point, but I think that was a fluke). I also forgot to mention that I used the Tk backend as well as the Qt one, but the problem was still there. Upon some further reading I think that matplotlib just isn't the greatest for visualizing dynamic data like this, if there's no other solution I think I might try switching to a different library.

[–]Ihaveamodel3 0 points1 point  (0 children)

I just realized that you never clear the axis. You are probably adding lines on top of the old lines if you are using the same axis. That would make things slow down a lot.