Exporting animated visualizations such as image sequences, gifs or videos.
Matplotlib is probably the most popular data/scientific visualization library for python. Despite normally working with static figures, it also provides some decent ways to produce moving imaging. Let’s take a look in how to export visually our animated data.
All the following examples (and many others) can be reached on this notebook:
To export an image sequence you basically have to loop through a batch of functions which are responsible for saving our Matplotlib’s imshows. After getting the picture sequence (ordered or not), we are able to produce videos, GIFs…