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

Skip to content

Commit 0310b8a

Browse files
authored
Merge pull request #15739 from erelson/imagemagick_extra_args
ImageMagick animators now can use extra_args
2 parents 1eacd31 + de86859 commit 0310b8a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/matplotlib/animation.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,11 @@ def delay(self):
696696

697697
@property
698698
def output_args(self):
699-
return [self.outfile]
699+
if self.extra_args:
700+
args = list(self.extra_args)
701+
else:
702+
args = []
703+
return args + [self.outfile]
700704

701705
@classmethod
702706
def bin_path(cls):

0 commit comments

Comments
 (0)