animation
MovieWriter.
setup
Perform setup for writing the movie file.
fig : matplotlib.Figure instance
matplotlib.Figure
The figure object that contains the information for frames
outfile : string
The filename of the resulting movie file
dpi : int
The DPI (or resolution) for the file. This controls the size in pixels of the resulting movie file.