Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 79a11a2

Browse files
committed
Undeprecate frameon.
1 parent 4ed83c1 commit 79a11a2

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
@@ -938,7 +938,6 @@ def get_dpi(self):
938938
"""Return the resolution in dots per inch as a float."""
939939
return self.dpi
940940

941-
@cbook.deprecated("3.1", alternative="figure.patch.get_visible")
942941
def get_frameon(self):
943942
"""Return whether the figure frame will be drawn."""
944943
return self.patch.get_visible()
@@ -996,7 +995,6 @@ def set_figheight(self, val, forward=True):
996995
"""
997996
self.set_size_inches(self.get_figwidth(), val, forward=forward)
998997

999-
@cbook.deprecated("3.1", alternative="figure.patch.set_visible")
1000998
def set_frameon(self, b):
1001999
"""
10021000
Set whether the figure frame (background) is displayed or invisible.

0 commit comments

Comments
 (0)