Skip to content

Commit

Permalink
Merge pull request #27324 from meeseeksmachine/auto-backport-of-pr-27…
Browse files Browse the repository at this point in the history
…323-on-v3.8.x

Backport PR #27323 on branch v3.8.x ([DOC] Minor fixes for savefig-docstring)
  • Loading branch information
rcomer committed Nov 14, 2023
2 parents 94c0cfe + 2b58748 commit 38a0e94
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions lib/matplotlib/figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -3237,10 +3237,10 @@ def savefig(self, fname, *, transparent=None, **kwargs):
Call signature::
savefig(fname, *, dpi='figure', format=None, metadata=None,
bbox_inches=None, pad_inches=0.1,
facecolor='auto', edgecolor='auto',
backend=None, **kwargs
savefig(fname, *, transparent=None, dpi='figure', format=None,
metadata=None, bbox_inches=None, pad_inches=0.1,
facecolor='auto', edgecolor='auto', backend=None,
**kwargs
)
The available output formats depend on the backend being used.
Expand All @@ -3265,6 +3265,22 @@ def savefig(self, fname, *, transparent=None, **kwargs):
Other Parameters
----------------
transparent : bool, default: :rc:`savefig.transparent`
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.
If *False* has no effect and the color of the Axes and
Figure patches are unchanged (unless the Figure patch
is specified via the *facecolor* and/or *edgecolor* keyword
arguments in which case those colors are used).
The transparency of these patches will be restored to their
original values upon exit of this function.
This is useful, for example, for displaying
a plot on top of a colored background on a web page.
dpi : float or 'figure', default: :rc:`savefig.dpi`
The resolution in dots per inch. If 'figure', use the figure's
dpi value.
Expand Down Expand Up @@ -3324,22 +3340,6 @@ def savefig(self, fname, *, transparent=None, **kwargs):
'a10', 'b0' through 'b10'. Only supported for postscript
output.
transparent : bool
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.
If *False* has no effect and the color of the Axes and
Figure patches are unchanged (unless the Figure patch
is specified via the *facecolor* and/or *edgecolor* keyword
arguments in which case those colors are used).
The transparency of these patches will be restored to their
original values upon exit of this function.
This is useful, for example, for displaying
a plot on top of a colored background on a web page.
bbox_extra_artists : list of `~matplotlib.artist.Artist`, optional
A list of extra artists that will be considered when the
tight bbox is calculated.
Expand Down

0 comments on commit 38a0e94

Please sign in to comment.