Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a14050a

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/animation.py

Copy file name to clipboardExpand all lines: lib/matplotlib/animation.py
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.