@@ -3186,10 +3186,10 @@ def savefig(self, fname, *, transparent=None, **kwargs):
3186
3186
3187
3187
Call signature::
3188
3188
3189
- savefig(fname, *, dpi='figure', format=None, metadata =None,
3190
- bbox_inches=None, pad_inches=0.1,
3191
- facecolor='auto', edgecolor='auto',
3192
- backend=None, **kwargs
3189
+ savefig(fname, *, transparent=None, dpi='figure', format=None,
3190
+ metadata=None, bbox_inches=None, pad_inches=0.1,
3191
+ facecolor='auto', edgecolor='auto', backend=None,
3192
+ **kwargs
3193
3193
)
3194
3194
3195
3195
The available output formats depend on the backend being used.
@@ -3214,6 +3214,22 @@ def savefig(self, fname, *, transparent=None, **kwargs):
3214
3214
3215
3215
Other Parameters
3216
3216
----------------
3217
+ transparent : bool, default: :rc:`savefig.transparent`
3218
+ If *True*, the Axes patches will all be transparent; the
3219
+ Figure patch will also be transparent unless *facecolor*
3220
+ and/or *edgecolor* are specified via kwargs.
3221
+
3222
+ If *False* has no effect and the color of the Axes and
3223
+ Figure patches are unchanged (unless the Figure patch
3224
+ is specified via the *facecolor* and/or *edgecolor* keyword
3225
+ arguments in which case those colors are used).
3226
+
3227
+ The transparency of these patches will be restored to their
3228
+ original values upon exit of this function.
3229
+
3230
+ This is useful, for example, for displaying
3231
+ a plot on top of a colored background on a web page.
3232
+
3217
3233
dpi : float or 'figure', default: :rc:`savefig.dpi`
3218
3234
The resolution in dots per inch. If 'figure', use the figure's
3219
3235
dpi value.
@@ -3273,22 +3289,6 @@ def savefig(self, fname, *, transparent=None, **kwargs):
3273
3289
'a10', 'b0' through 'b10'. Only supported for postscript
3274
3290
output.
3275
3291
3276
- transparent : bool
3277
- If *True*, the Axes patches will all be transparent; the
3278
- Figure patch will also be transparent unless *facecolor*
3279
- and/or *edgecolor* are specified via kwargs.
3280
-
3281
- If *False* has no effect and the color of the Axes and
3282
- Figure patches are unchanged (unless the Figure patch
3283
- is specified via the *facecolor* and/or *edgecolor* keyword
3284
- arguments in which case those colors are used).
3285
-
3286
- The transparency of these patches will be restored to their
3287
- original values upon exit of this function.
3288
-
3289
- This is useful, for example, for displaying
3290
- a plot on top of a colored background on a web page.
3291
-
3292
3292
bbox_extra_artists : list of `~matplotlib.artist.Artist`, optional
3293
3293
A list of extra artists that will be considered when the
3294
3294
tight bbox is calculated.
0 commit comments