matplotlib.animation.PillowWriter
- class matplotlib.animation.PillowWriter(fps=5, metadata=None, codec=None, bitrate=None)
- __init__, , ,
| |
| Finish any processing for writing the movie. |
| Grab the image information from the figure and save as a movie frame. |
| Context manager to facilitate writing the movie file. |
| Setup for writing the movie file. |
| A tuple |
Finish any processing for writing the movie.
Grab the image information from the figure and save as a movie frame.
All keyword arguments in savefig_kwargs are passed on to the
savefig call that saves the figure. However, several
keyword arguments that are supported by savefig may not be
passed as they are controlled by the MovieWriter:
animation much be exactly the same size in pixels.
format: This is controlled by the MovieWriter.
Setup for writing the movie file.
FigureThe figure object that contains the information for frames.
The filename of the resulting movie file.
fig.dpiThe DPI (or resolution) for the file. This controls the size in pixels of the resulting movie file.