The animation process in Matplotlib can be thought of in 2 different ways: FuncAnimation: Generate data for first frame and then modify this data for each frame to create an animated plot.
from matplotlib.animation import FuncAnimation, FFMpegWriter class HackedFFMpegWriter(FFMpegWriter): def grab_frame(self, **savefig_kwargs): # Arguments that are forced to be set within the ...