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 3c75cb5

Browse filesBrowse files
authored
Merge pull request #23078 from greglucas/dep-axis-cla
MNT: Remove deprecated axis.cla()
2 parents 3f86e24 + 300459e commit 3c75cb5
Copy full SHA for 3c75cb5

File tree

Expand file treeCollapse file tree

3 files changed

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

3 files changed

+4
-6
lines changed

‎doc/api/axis_api.rst

Copy file name to clipboardExpand all lines: doc/api/axis_api.rst
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ Inheritance
4141
:nosignatures:
4242

4343
Axis.clear
44-
Axis.cla
4544
Axis.get_scale
4645

4746

+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
``Axis.cla()`` has been removed
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
4+
Use `.Axis.clear()` instead.

‎lib/matplotlib/axis.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axis.py
-5Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -868,11 +868,6 @@ def clear(self):
868868
self.set_units(None)
869869
self.stale = True
870870

871-
@_api.deprecated("3.4", alternative="`.Axis.clear`")
872-
def cla(self):
873-
"""Clear this axis."""
874-
return self.clear()
875-
876871
def reset_ticks(self):
877872
"""
878873
Re-initialize the major and minor Tick lists.

0 commit comments

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