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

Skip to content

Commit a6cdd0f

Browse files
authored
Merge pull request #10760 from matplotlib/auto-backport-of-pr-10739
Backport PR #10739 on branch v2.2.x
2 parents 2dca43a + 3f212ce commit a6cdd0f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/matplotlib/animation.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,8 +669,9 @@ def _args(self):
669669
'-s', '%dx%d' % self.frame_size, '-pix_fmt', self.frame_format,
670670
'-r', str(self.fps)]
671671
# Logging is quieted because subprocess.PIPE has limited buffer size.
672-
673-
if (_log.getEffectiveLevel() < logging.DEBUG):
672+
# If you have a lot of frames in your animation and set logging to
673+
# DEBUG, you will have a buffer overrun.
674+
if (_log.getEffectiveLevel() > logging.DEBUG):
674675
args += ['-loglevel', 'quiet']
675676
args += ['-i', 'pipe:'] + self.output_args
676677
return args

0 commit comments

Comments
 (0)