This section describes how to generate animations to make plots along with customizing the animation frame rate, speed, and repetitions.
Making movies
How to generate animations to make plots that update themselves
Let's begin by importing the necessary functions and use the Matplotlib Notebook interactive backend. We will also import the FuncAnimation method from Matplotlib.animation.
Start by making the standard basic sine plot. We have also added a function that changes the Y data by moving it over to the first argument. We will now use the func.animation method. As we call the func.animation method with the figure and our update method as the two arguments, we get a nice animation of the sine wave:
# Basic FuncAnimation...