Skip to content

Commit a6dc4b1

Browse files
frameon-doc-update
1 parent 5b2cfd9 commit a6dc4b1

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

lib/matplotlib/figure.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ class Figure(Artist):
253253
Attributes
254254
----------
255255
patch
256-
The `.Rectangle` instance representing the figure patch.
256+
The `.Rectangle` instance representing the figure background patch.
257257
258258
suppressComposite
259259
For multiple figure images, the figure will make composite images
@@ -303,7 +303,7 @@ def __init__(self,
303303
patch).
304304
305305
frameon : bool, default: :rc:`figure.frameon`
306-
If ``False``, suppress drawing the figure frame.
306+
If ``False``, suppress drawing the figure background patch.
307307
308308
subplotpars : :class:`SubplotParams`
309309
Subplot parameters. If not given, the default subplot
@@ -936,7 +936,11 @@ def get_dpi(self):
936936
return self.dpi
937937

938938
def get_frameon(self):
939-
"""Return whether the figure frame will be drawn."""
939+
"""
940+
Return the figure's background patch visibility, i.e.
941+
whether the figure background will be drawn. Equivalent to
942+
``Figure.patch.get_visible()``.
943+
"""
940944
return self.patch.get_visible()
941945

942946
def set_edgecolor(self, color):
@@ -994,7 +998,9 @@ def set_figheight(self, val, forward=True):
994998

995999
def set_frameon(self, b):
9961000
"""
997-
Set whether the figure frame (background) is displayed or invisible.
1001+
Set the figure's background patch visibility, i.e.
1002+
whether the figure background will be drawn. Equivalent to
1003+
``Figure.patch.set_visible()``.
9981004
9991005
Parameters
10001006
----------

0 commit comments

Comments
 (0)