Skip to content

Commit 5b2cfd9

Browse files
committed
Undeprecate frameon.
1 parent c69ec43 commit 5b2cfd9

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
Deprecations
2-
````````````
1+
Figure.frameon is now a direct proxy for the Figure patch visibility state
2+
``````````````````````````````````````````````````````````````````````````
33

4-
The following API elements are deprecated:
5-
6-
- ``Figure.frameon``, ``Figure.get_frameon``, ``Figure.set_frameon`` (directly
7-
manipulate the visibility of ``Figure.patch`` instead),
4+
Accessing ``Figure.frameon`` (including via ``get_frameon`` and ``set_frameon``
5+
now directly forwards to the visibility of the underlying Rectangle artist
6+
(``Figure.patch.get_frameon``, ``Figure.patch.set_frameon``).

lib/matplotlib/figure.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,6 @@ def get_dpi(self):
935935
"""Return the resolution in dots per inch as a float."""
936936
return self.dpi
937937

938-
@cbook.deprecated("3.1", alternative="figure.patch.get_visible")
939938
def get_frameon(self):
940939
"""Return whether the figure frame will be drawn."""
941940
return self.patch.get_visible()
@@ -993,7 +992,6 @@ def set_figheight(self, val, forward=True):
993992
"""
994993
self.set_size_inches(self.get_figwidth(), val, forward=forward)
995994

996-
@cbook.deprecated("3.1", alternative="figure.patch.set_visible")
997995
def set_frameon(self, b):
998996
"""
999997
Set whether the figure frame (background) is displayed or invisible.

0 commit comments

Comments
 (0)