Skip to content

Commit 3ab7641

Browse files
committed
Fix animation writer fallback.
Getting the next available writer was done incorrectly.
1 parent 0e4685b commit 3ab7641

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
@@ -1090,7 +1090,7 @@ def func(current_frame: int, total_frames: int) -> Any
10901090
if writers.is_available(writer):
10911091
writer = writers[writer](fps, **writer_kwargs)
10921092
else:
1093-
alt_writer = next(writers, None)
1093+
alt_writer = next(iter(writers), None)
10941094
if alt_writer is None:
10951095
raise ValueError("Cannot save animation: no writers are "
10961096
"available. Please install ffmpeg to "

0 commit comments

Comments
 (0)