A path, or a Python file-like object, or possibly some backend-dependent object such as matplotlib.backends.backend_pdf.PdfPages
.
If format is not set, then the output format is inferred from the extension of fname, if any, and from rcParams["savefig.format"] = 'png'
otherwise. If format is set, it determines the output format.
Hence, if fname is not a path or has no extension, remember to specify format to ensure that the correct backend is used.
The resolution in dots per inch. If None, defaults to rcParams["savefig.dpi"] = 'figure'
. If 'figure', uses the figure's dpi value.
The image quality, on a scale from 1 (worst) to 95 (best). Applicable only if format is jpg or jpeg, ignored otherwise. If None, defaults to rcParams["savefig.jpeg_quality"] = 95
(95 by default). Values above 95 should be avoided; 100 completely disables the JPEG quantization stage.
If True, indicates that the JPEG encoder should make an extra pass over the image in order to select optimal encoder settings. Applicable only if format is jpg or jpeg, ignored otherwise. Is False by default.
If True, indicates that this image should be stored as a progressive JPEG file. Applicable only if format is jpg or jpeg, ignored otherwise. Is False by default.
The facecolor of the figure; if None, defaults to rcParams["savefig.facecolor"] = 'white'
.
The edgecolor of the figure; if None, defaults to rcParams["savefig.edgecolor"] = 'white'
Currently only supported by the postscript backend.
One of 'letter', 'legal', 'executive', 'ledger', 'a0' through 'a10', 'b0' through 'b10'. Only supported for postscript output.
The file format, e.g. 'png', 'pdf', 'svg', ... The behavior when this is unset is documented under fname.
If True, the axes patches will all be transparent; the figure patch will also be transparent unless facecolor and/or edgecolor are specified via kwargs. This is useful, for example, for displaying a plot on top of a colored background on a web page. The transparency of these patches will be restored to their original values upon exit of this function.
Bbox
, optional
Bbox in inches. Only the given portion of the figure is saved. If 'tight', try to figure out the tight bbox of the figure. If None, use savefig.bbox
Amount of padding around the figure when bbox_inches is 'tight'. If None, use savefig.pad_inches
Artist
, optional
A list of extra artists that will be considered when the tight bbox is calculated.
Key/value pairs to store in the image metadata. The supported keys and defaults depend on the image format and backend:
Additional keyword arguments that are passed to PIL.Image.save
when saving the figure. Only applicable for formats that are saved using Pillow, i.e. JPEG, TIFF, and (if the keyword is set to a non-None value) PNG.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4