From 300459e24e7f7452d7fd212009c57b13736ab705 Mon Sep 17 00:00:00 2001 From: Greg Lucas Date: Thu, 19 May 2022 20:12:37 -0600 Subject: [PATCH] MNT: Remove deprecated axis.cla() --- doc/api/axis_api.rst | 1 - doc/api/next_api_changes/removals/23078-GL.rst | 4 ++++ lib/matplotlib/axis.py | 5 ----- 3 files changed, 4 insertions(+), 6 deletions(-) create mode 100644 doc/api/next_api_changes/removals/23078-GL.rst diff --git a/doc/api/axis_api.rst b/doc/api/axis_api.rst index 7161671f2ab6..80a6612fa165 100644 --- a/doc/api/axis_api.rst +++ b/doc/api/axis_api.rst @@ -41,7 +41,6 @@ Inheritance :nosignatures: Axis.clear - Axis.cla Axis.get_scale diff --git a/doc/api/next_api_changes/removals/23078-GL.rst b/doc/api/next_api_changes/removals/23078-GL.rst new file mode 100644 index 000000000000..10d5d4604242 --- /dev/null +++ b/doc/api/next_api_changes/removals/23078-GL.rst @@ -0,0 +1,4 @@ +``Axis.cla()`` has been removed +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Use `.Axis.clear()` instead. diff --git a/lib/matplotlib/axis.py b/lib/matplotlib/axis.py index cb983dfd86c1..937bacea4ff4 100644 --- a/lib/matplotlib/axis.py +++ b/lib/matplotlib/axis.py @@ -868,11 +868,6 @@ def clear(self): self.set_units(None) self.stale = True - @_api.deprecated("3.4", alternative="`.Axis.clear`") - def cla(self): - """Clear this axis.""" - return self.clear() - def reset_ticks(self): """ Re-initialize the major and minor Tick lists.