Computer Science | Mathematics | Creative stuff >> https://diegoinacio.github.io/

Exporting animated visualizations such as image sequences, gifs or videos.

Image for post
Image for post

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:

1. Exporting image sequence

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…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store