8000 DOC: clarify that savefig(..., transparent=False) has no effect · matplotlib/matplotlib@6c2d146 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6c2d146

Browse files
committed
DOC: clarify that savefig(..., transparent=False) has no effect
re-closes #14339
1 parent 81f0624 commit 6c2d146

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/matplotlib/figure.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2890,8 +2890,12 @@ def savefig(self, fname, *, transparent=None, **kwargs):
28902890
28912891
transparent : bool
28922892
If *True*, the Axes patches will all be transparent; the
2893-
figure patch will also be transparent unless facecolor
2893+
Figure patch will also be transparent unless facecolor
28942894
and/or edgecolor are specified via kwargs.
2895+
2896+
If *False* has no effect and leaves the color of the Axes and
2897+
Figure patches as they are.
2898+
28952899
This is useful, for example, for displaying
28962900
a plot on top of a colored background on a web page. The
28972901
transparency of these patches will be restored to their

0 commit comments

Comments
 (0)
0