From bdde30f7e4a63ef0c4d82eddb6ac16b788cec779 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Sun, 28 Jan 2018 00:36:27 -0800 Subject: [PATCH] Deprecate backend_tkagg.AxisMenu. Obsolete since the removal of "classic" (pre-toolbar2) toolbar support in 4243470. --- doc/api/api_changes/2018-01-29-AL.rst | 4 ++++ lib/matplotlib/backends/backend_tkagg.py | 1 + 2 files changed, 5 insertions(+) create mode 100644 doc/api/api_changes/2018-01-29-AL.rst diff --git a/doc/api/api_changes/2018-01-29-AL.rst b/doc/api/api_changes/2018-01-29-AL.rst new file mode 100644 index 000000000000..ad6c36618fbc --- /dev/null +++ b/doc/api/api_changes/2018-01-29-AL.rst @@ -0,0 +1,4 @@ +Deprecation of backend_tkagg.AxisMenu +````````````````````````````````````` +The above-mentioned class is deprecated, as it has become unused since the +removal of "classic" toolbars. diff --git a/lib/matplotlib/backends/backend_tkagg.py b/lib/matplotlib/backends/backend_tkagg.py index 59a1e6d7c78b..8fbc88691271 100644 --- a/lib/matplotlib/backends/backend_tkagg.py +++ b/lib/matplotlib/backends/backend_tkagg.py @@ -582,6 +582,7 @@ def full_screen_toggle(self): self.window.attributes('-fullscreen', not is_fullscreen) +@cbook.deprecated("2.2") class AxisMenu(object): def __init__(self, master, naxes): self._master = master