O'Reilly logo

Interactive Applications Using Matplotlib by Benjamin V. Root

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Saving animations

While having a quick and easy way of displaying an animation is nice, you would likely need to save the animation somehow. The animation module provides the "writer" framework that allows multiple movie-writing mechanisms to be available to users. One of them that you have already seen is the simple frame-saving mechanism that is fed into ImageMagick to convert frames into an animated GIF. Three additional mechanisms are packaged with Matplotlib, namely, 'ffmpeg', 'avconv', and 'mencoder'. Actually, there are four more, but they are essentially slightly modified versions of the three and 'imagemagick'. These three writers provide interfaces to their respective encoding tools. The avconv tool is a somewhat recent fork of the popular ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required