From de86859dde90270750d1eaf1721473e4b092ad2b Mon Sep 17 00:00:00 2001 From: Eric Relson Date: Wed, 20 Nov 2019 22:07:01 -0800 Subject: [PATCH] ImageMagick animators now can use extra_args As a general solution for passing further args to imagemagick when generating animations, extra_args is now actually used. Extra args are placed after all other args, but before the output file name. --- lib/matplotlib/animation.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/matplotlib/animation.py b/lib/matplotlib/animation.py index 941e1b233740..2459cf7432f5 100644 --- a/lib/matplotlib/animation.py +++ b/lib/matplotlib/animation.py @@ -696,7 +696,11 @@ def delay(self): @property def output_args(self): - return [self.outfile] + if self.extra_args: + args = list(self.extra_args) + else: + args = [] + return args + [self.outfile] @classmethod def bin_path(cls):