8000 Backport PR #16966: Fix animation writer fallback. · matplotlib/matplotlib@a14050a · GitHub
[go: up one dir, main page]

Skip to content

Commit a14050a

Browse files
QuLogicmeeseeksmachine
authored andcommitted
Backport PR #16966: Fix animation writer fallback.
1 parent 0c6c184 commit a14050a

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)
0