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 8922733

Browse filesBrowse files
committed
Remove unsupported animation frame formats.
Since `supported_formats` determines the valid `frame_format` values, and the latter is passed to `Figure.savefig`, the former must be a subset of the file formats to which Matplotlib supports saving things.
1 parent 97a2b36 commit 8922733
Copy full SHA for 8922733

File tree

Expand file treeCollapse file tree

1 file changed

+2
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-4
lines changed

‎lib/matplotlib/animation.py

Copy file name to clipboardExpand all lines: lib/matplotlib/animation.py
+2-4Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -628,8 +628,7 @@ class FFMpegFileWriter(FFMpegBase, FileMovieWriter):
628628
Frames are written to temporary files on disk and then stitched
629629
together at the end.
630630
"""
631-
supported_formats = ['png', 'jpeg', 'ppm', 'tiff', 'sgi', 'bmp',
632-
'pbm', 'raw', 'rgba']
631+
supported_formats = ['png', 'jpeg', 'tiff', 'raw', 'rgba']
633632

634633
def _args(self):
635634
# Returns the command line parameters for subprocess to use
@@ -759,8 +758,7 @@ class ImageMagickFileWriter(ImageMagickBase, FileMovieWriter):
759758
together at the end.
760759
"""
761760

762-
supported_formats = ['png', 'jpeg', 'ppm', 'tiff', 'sgi', 'bmp',
763-
'pbm', 'raw', 'rgba']
761+
supported_formats = ['png', 'jpeg', 'tiff', 'raw', 'rgba']
764762

765763
def _args(self):
766764
# Force format: ImageMagick does not recognize 'raw'.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.