|
From: Michael M. <mic...@gm...> - 2014-04-20 00:08:01
|
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 |