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

Skip to content

Commit 7563497

Browse files
committed
Merge pull request matplotlib#2772 from tacaswell/fix_ani_save_writer_creation
BUG : instantiate fall-back writer
2 parents 8fc41f8 + b8f2e7c commit 7563497

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/matplotlib/animation.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,9 @@ def save(self, filename, writer=None, fps=None, dpi=None, codec=None,
702702
warnings.warn("MovieWriter %s unavailable" % writer)
703703

704704
try:
705-
writer = writers.list()[0]
705+
writer = writers[writers.list()[0]](fps, codec, bitrate,
706+
extra_args=extra_args,
707+
metadata=metadata)
706708
except IndexError:
707709
raise ValueError("Cannot save animation: no writers are "
708710
"available. Please install mencoder or "

0 commit comments

Comments
 (0)