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

Skip to content

Commit b3e8fca

Browse files
authored
Merge pull request #16969 from meeseeksmachine/auto-backport-of-pr-16966-on-v3.2.x
Backport PR #16966 on branch v3.2.x (Fix animation writer fallback.)
2 parents 0c6c184 + a14050a commit b3e8fca

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
@@ -1099,7 +1099,7 @@ def func(current_frame: int, total_frames: int) -> Any
10991099
extra_args=extra_args,
11001100
metadata=metadata)
11011101
else:
1102-
alt_writer = next(writers, None)
1102+
alt_writer = next(iter(writers), None)
11031103
if alt_writer is None:
11041104
raise ValueError("Cannot save animation: no writers are "
11051105
"available. Please install ffmpeg to "

0 commit comments

Comments
 (0)