Book Image

Interactive Applications using Matplotlib

Book Image

Interactive Applications using Matplotlib

Overview of this book

Table of Contents (12 chapters)

Summary


We have seen how easy it is to integrate an animation into any Matplotlib application. Using FuncAnimation, we were able to simulate a user stepping through the frames of our application and save it as an animated GIF. Furthermore, we saw how to control the speed of the animation, whether or not the animation should loop, and if so, how much of a delay should be inserted between loops. Besides function-based animations, the ArtistAnimation class was introduced as a simple alternative animator, discussing the pros and cons of each. As we became more advanced in our animation usage, we were able to create and synchronize multiple animation instances, allowing developers to mix together the desired animation elements.

We also covered other advanced animation topics, such as how animation objects in Matplotlib work, in particular, the timers in the animator classes. We discussed why Matplotlib's cross-platform timer object is necessary and how it works for interactive sessions. Taking...