@@ -3237,10 +3237,10 @@ def savefig(self, fname, *, transparent=None, **kwargs):
3237
3237
3238
3238
Call signature::
3239
3239
3240
- savefig(fname, *, dpi='figure', format=None, metadata =None,
3241
- bbox_inches=None, pad_inches=0.1,
3242
- facecolor='auto', edgecolor='auto',
3243
- backend=None, **kwargs
3240
+ savefig(fname, *, transparent=None, dpi='figure', format=None,
3241
+ metadata=None, bbox_inches=None, pad_inches=0.1,
3242
+ facecolor='auto', edgecolor='auto', backend=None,
3243
+ **kwargs
3244
3244
)
3245
3245
3246
3246
The available output formats depend on the backend being used.
@@ -3265,6 +3265,22 @@ def savefig(self, fname, *, transparent=None, **kwargs):
3265
3265
3266
3266
Other Parameters
3267
3267
----------------
3268
+ transparent : bool, default: :rc:`savefig.transparent`
3269
+ If *True*, the Axes patches will all be transparent; the
3270
+ Figure patch will also be transparent unless *facecolor*
3271
+ and/or *edgecolor* are specified via kwargs.
3272
+
3273
+ If *False* has no effect and the color of the Axes and
3274
+ Figure patches are unchanged (unless the Figure patch
3275
+ is specified via the *facecolor* and/or *edgecolor* keyword
3276
+ arguments in which case those colors are used).
3277
+
3278
+ The transparency of these patches will be restored to their
3279
+ original values upon exit of this function.
3280
+
3281
+ This is useful, for example, for displaying
3282
+ a plot on top of a colored background on a web page.
3283
+
3268
3284
dpi : float or 'figure', default: :rc:`savefig.dpi`
3269
3285
The resolution in dots per inch. If 'figure', use the figure's
3270
3286
dpi value.
@@ -3324,22 +3340,6 @@ def savefig(self, fname, *, transparent=None, **kwargs):
3324
3340
'a10', 'b0' through 'b10'. Only supported for postscript
3325
3341
output.
3326
3342
3327
- transparent : bool
3328
- If *True*, the Axes patches will all be transparent; the
3329
- Figure patch will also be transparent unless *facecolor*
3330
- and/or *edgecolor* are specified via kwargs.
3331
-
3332
- If *False* has no effect and the color of the Axes and
3333
- Figure patches are unchanged (unless the Figure patch
3334
- is specified via the *facecolor* and/or *edgecolor* keyword
3335
- arguments in which case those colors are used).
3336
-
3337
- The transparency of these patches will be restored to their
3338
- original values upon exit of this function.
3339
-
3340
- This is useful, for example, for displaying
3341
- a plot on top of a colored background on a web page.
3342
-
3343
3343
bbox_extra_artists : list of `~matplotlib.artist.Artist`, optional
3344
3344
A list of extra artists that will be considered when the
3345
3345
tight bbox is calculated.
0 commit comments