Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5b2cfd9

Browse filesBrowse files
committed
Undeprecate frameon.
1 parent c69ec43 commit 5b2cfd9
Copy full SHA for 5b2cfd9

File tree

Expand file treeCollapse file tree

2 files changed

+5
-8
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+5
-8
lines changed
+5-6Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/figure.py
-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.