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

Skip to content

Commit 3c75cb5

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

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

doc/api/axis_api.rst

Lines 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

Lines 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

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