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

Skip to content

Commit 9536fe9

Browse 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

File tree

2 files changed

+6
-0
lines changed

2 files changed

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

Lines 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)