Re: [Matplotlib-users] Plotting speed and error when calling update() using TkAgg

2017-04-18 Thread Benjamin Root
I am wondering if the "optimizations" you have are actually slowing you down. I have never found myself needing to flush_events() or call update() like that. Or to draw the artists like you are doing. Without seeing more of the code, it is hard to judge. Have you tried using "runsnakerun" to profil

Re: [Matplotlib-users] Plotting speed and error when calling update() using TkAgg

2017-04-18 Thread Hjalmar Turesson
Thanks for the help (and sorry for the super-late reply). I just tried blitting, but it doesn't really help. I cannot exceed 20 fps. The problem is that I'm plotting data from a video file, so that for each frame I need to draw a new array (not just a foreground). I think its just to much data. T

Re: [Matplotlib-users] Plotting speed and error when calling update() using TkAgg

2017-01-07 Thread Thomas Caswell
To push much past 20Hz you will want to look into blitting. See http://matplotlib.org/devdocs/api/animation_api.html for a rough introduction on how to use blitting (and see the animation code for an example of handling all of the corner cases). Tom On Fri, Oct 14, 2016 at 5:29 PM Hjalmar Turess

Re: [Matplotlib-users] Plotting speed and error when calling update() using TkAgg

2016-10-14 Thread Hjalmar Turesson
That works fine. And it explains why update() only worked with the Qt backends (I tried all). The speed is still not super impressive though (~20 fps), but I think I will just start skipping frames when playing at above 20 fps. Thanks, Hjalmar On Fri, Oct 14, 2016 at 10:37 AM, Thomas Caswell wro

Re: [Matplotlib-users] Plotting speed and error when calling update() using TkAgg

2016-10-14 Thread Thomas Caswell
Instead of `canvas.update` call `self.im.figure.canvas.draw_idle()`. IIRC `update` is part of the API inherited from Qt, not part of the API we ensure that all of the canvas objects have. Tom On Fri, Oct 7, 2016 at 4:48 PM Hjalmar Turesson wrote: > Hi all, > > > I made a little video player us