In this section, we will cover the animation of plots. Animation is a power tool used to create a story line from raw data. It is a series of frames of visual charts connected together to create a video. Animated plots in Matplotlib can be saved as .mp4 files that can be played back using a media player, just like any other video.
Matplotlib provides the following two classes to implement animated plots:
- FuncAnimation
- ArtistAnimation
We will learn how to use both of them in this section.