animation optimization

Hey all,

I am trying to produce an animation from several images generated with imshow from a sequence of arrays in time, I have done that in several ways. However, my animations consist of several frames (on the order of 10000 frames) and thus the simulation crashes when it’s too large.

The solution I found was writing the png files and then animating. It is very time and memory consuming, though, and I have the impression it is not the best solution to tackle this problem. What is the best practice to deal with this problem?

Thanks!

Bruno

P.S.: I’m using Ipython, would it change running from a terminal instead of running it from the shell?