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 300459e

Browse filesBrowse files
committed
MNT: Remove deprecated axis.cla()
1 parent 65e9204 commit 300459e
Copy full SHA for 300459e

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.