You are reading an old version of the documentation (v2.0.1). For the latest version see https://matplotlib.org/stable/
matplotlib

Travis-CI:

This Page

matplotlib.animation.MovieWriter.setup

MovieWriter.setup(fig, outfile, dpi)

Perform setup for writing the movie file.

Parameters:

fig : matplotlib.Figure instance

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.