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

Skip to content

Commit 1982469

Browse files
larsonertacaswell
andauthored
Update lib/matplotlib/animation.py
Co-authored-by: Thomas A Caswell <[email protected]>
1 parent 35ead09 commit 1982469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/animation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ class FFMpegBase:
571571
@property
572572
def output_args(self):
573573
args = []
574-
if not self.outfile.endswith('.gif'):
574+
if not Path(self.outfile).suffix == '.gif':
575575
args.extend(['-vcodec', self.codec])
576576
extra_args = (self.extra_args if self.extra_args is not None
577577
else mpl.rcParams[self._args_key])

0 commit comments

Comments
 (0)