Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f09dd61

Browse files
author
Nathan Goldbaum
committed
Adjust the frame size before writing to disk in case a library outside of matplotlib adjusted it in the meantime
1 parent 9b077f2 commit f09dd61

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/animation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ def grab_frame(self, **savefig_kwargs):
338338
verbose.report('MovieWriter.grab_frame: Grabbing frame.',
339339
level='debug')
340340
try:
341+
self._adjust_frame_size()
341342
# Tell the figure to save its data to the sink, using the
342343
# frame format and dpi.
343344
self.fig.savefig(self._frame_sink(), format=self.frame_format,

0 commit comments

Comments
 (0)