### Navigation

- index
- modules |
- next |
- previous |
- home|
- examples|
- tutorials|
- pyplot|
- docs »
- The Matplotlib API »
- `animation` module »

# matplotlib.animation.MovieWriter.setup

`MovieWriter.``setup`(fig, outfile, dpi=None)

  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, optional The DPI (or resolution) for the file. This controls the size in pixels of the resulting movie file. Default is fig.dpi.