On 4/19/2014 3:51 PM, Raymond Smith wrote:
Hi Mike,

Have you tried blitting? That prevents the draw from redrawing everything on the plot, allowing it to only redraw the single line that's moving, which should help any issues with speed. See some of the examples <http://matplotlib.org/examples/animation/index.html> with FuncAnimation and also a Q&A using the draw method here <https://stackoverflow.com/questions/8955869/why-is-plotting-with-matplotlib-so-slow/8956211#8956211>, which might work more smoothly with QTimer.

Ray


Thanks, I'll check it out. Note that I did get FuncAnimation to work perfectly well except I have little control over the timing so I had a hard time synchronizing it with the sound. The FuncAnimation example I looked at wasn't very helpful if the question is how to blit or other details, because that's all going on behind the scenes. I will study the Stack Overflow Q&A and see if there is something I can directly use.

Mike



------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to