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

Method grab_frame

lib/matplotlib/animation.py:346–355  ·  view source on GitHub ↗
(self, **savefig_kwargs)

Source from the content-addressed store, hash-verified

344 self._proc.returncode, self._proc.args, out, err)
345
346 def grab_frame(self, **savefig_kwargs):
347 # docstring inherited
348 _validate_grabframe_kwargs(savefig_kwargs)
349 _log.debug('MovieWriter.grab_frame: Grabbing frame.')
350 # Readjust the figure size in case it has been changed by the user.
351 # All frames must have the same size to save the movie correctly.
352 self.fig.set_size_inches(self._w, self._h)
353 # Save the figure data to the sink, using the frame format and dpi.
354 self.fig.savefig(self._proc.stdin, format=self.frame_format,
355 dpi=self.dpi, **savefig_kwargs)
356
357 def _args(self):
358 """Assemble list of encoder-specific command-line arguments."""

Callers

nothing calls this directly

Calls 3

set_size_inchesMethod · 0.80
savefigMethod · 0.45

Tested by

no test coverage detected