Conversation started Jun 22, 2011 at 14:07.
Jun 22, 2011 14:07
4
Q: How can I speed up an animation?

Ivo FlipseI'm trying to create a Matplotlib animation of my paw data, where you can see the pressure distribution on the entire pressure plate over time (256x64 sensors for 250 frames). I found a working example on Matplotlib's own site and managed to get it working on my own data. However the 'animation'...

I found a faster method than your suggestion, but it turned out glumpy isn't compatible with wxpython :(
1. set all that info
You could find the deltas and blit only the damaged area.
2. ability to change database location
3. change user
@IgnacioVazquezAbrams hmm interesting suggestion, that might actually make it work in matplotlib as well
if that allows it, that is
because the deltas are very, very small compared to the entire array
@KronoS that's not important right now
@KronoS you need to pick a tab to do this on
@KronoS I would do all this on the main tab
we just keep a list of users, then use a list or dropdown to let them pick who they are
that's what I was saying... all of those are for the main screen
Jun 22, 2011 14:13
@KronoS ah ok, I missed your earlier comment about the main panel
@IvoFlipse Render each frame in matplotlib first and get the deltas from that. Then you don't need to worry about matplotlib supporting it.
@IgnacioVazquezAbrams so I create the imshow(data)
then how do I update imshow with my delta?
Plot to an in-memory surface instead of to the control.
Then get the deltas.
Then plot the first full frame and follow it up with the deltas.
You'll need to double-buffer the control so you don't have to redraw from scratch on reveal, but it should be fine.
 
Conversation ended Jun 22, 2011 at 14:15.