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 9536fe9

Browse filesBrowse files
committed
Deprecate Spine.is_frame_like.
It has never been used since its addition in the "smart bounds" commit in 2009 (a5761e8) and the implementation just seems overly complex (the `position == "center"` / `position == "zero"` checks have effectively no effect on the return value). If someone complains with a use case, we can always revisit...
1 parent 136d986 commit 9536fe9
Copy full SHA for 9536fe9

File tree

Expand file treeCollapse file tree

2 files changed

+6
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+6
-0
lines changed
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Deprecations
2+
````````````
3+
4+
``Spine.is_frame_like`` is deprecated. It has never been used in the codebase
5+
since its addition in 2009.

‎lib/matplotlib/spines.py

Copy file name to clipboardExpand all lines: lib/matplotlib/spines.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ def cla(self):
177177
if self.axis is not None:
178178
self.axis.cla()
179179

180+
@cbook.deprecated("3.1")
180181
def is_frame_like(self):
181182
"""return True if directly on axes frame
182183

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.