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

Method _adjust_frame_size

lib/matplotlib/animation.py:295–306  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

293 self.extra_args = extra_args
294
295 def _adjust_frame_size(self):
296 if self.codec == 'h264':
297 wo, ho = self.fig.get_size_inches()
298 w, h = adjusted_figsize(wo, ho, self.dpi, 2)
299 if (wo, ho) != (w, h):
300 self.fig.set_size_inches(w, h, forward=True)
301 _log.info('figure size in inches has been adjusted '
302 'from %s x %s to %s x %s', wo, ho, w, h)
303 else:
304 w, h = self.fig.get_size_inches()
305 _log.debug('frame size in pixels is %s x %s', *self.frame_size)
306 return w, h
307
308 def setup(self, fig, outfile, dpi=None):
309 # docstring inherited

Callers 2

setupMethod · 0.95
setupMethod · 0.80

Calls 3

adjusted_figsizeFunction · 0.85
get_size_inchesMethod · 0.80
set_size_inchesMethod · 0.80

Tested by

no test coverage detected