MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / setup

Method setup

lib/matplotlib/animation.py:155–175  ·  view source on GitHub ↗

Setup for writing the movie file. Parameters ---------- fig : `~matplotlib.figure.Figure` The figure object that contains the information for frames. outfile : str The filename of the resulting movie file. dpi : float, default

(self, fig, outfile, dpi=None)

Source from the content-addressed store, hash-verified

153
154 @abc.abstractmethod
155 def setup(self, fig, outfile, dpi=None):
156 """
157 Setup for writing the movie file.
158
159 Parameters
160 ----------
161 fig : `~matplotlib.figure.Figure`
162 The figure object that contains the information for frames.
163 outfile : str
164 The filename of the resulting movie file.
165 dpi : float, default: ``fig.dpi``
166 The DPI (or resolution) for the file. This controls the size
167 in pixels of the resulting movie file.
168 """
169 # Check that path is valid
170 Path(outfile).parent.resolve(strict=True)
171 self.outfile = outfile
172 self.fig = fig
173 if dpi is None:
174 dpi = self.fig.dpi
175 self.dpi = dpi
176
177 @property
178 def frame_size(self):

Callers 1

savingMethod · 0.95

Calls 2

PathClass · 0.85
resolveMethod · 0.80

Tested by

no test coverage detected