From 5e5918add3c23123bca704046dddeaff6a678f38 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Fri, 6 Nov 2020 23:48:53 +0100 Subject: [PATCH] Remove Artist.eventson and Container.eventson --- doc/api/next_api_changes/removals/18909-TH.rst | 3 +++ lib/matplotlib/artist.py | 1 - lib/matplotlib/container.py | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 doc/api/next_api_changes/removals/18909-TH.rst diff --git a/doc/api/next_api_changes/removals/18909-TH.rst b/doc/api/next_api_changes/removals/18909-TH.rst new file mode 100644 index 000000000000..76fbd3260958 --- /dev/null +++ b/doc/api/next_api_changes/removals/18909-TH.rst @@ -0,0 +1,3 @@ +``Artist.eventson`` and ``Container.eventson`` +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +These attributes have no effect and thus have been removed. diff --git a/lib/matplotlib/artist.py b/lib/matplotlib/artist.py index f6472b0704e4..d1b821d22d0e 100644 --- a/lib/matplotlib/artist.py +++ b/lib/matplotlib/artist.py @@ -118,7 +118,6 @@ def __init__(self): # Normally, artist classes need to be queried for mouseover info if and # only if they override get_cursor_data. self._mouseover = type(self).get_cursor_data != Artist.get_cursor_data - self.eventson = False # fire events only if eventson self._callbacks = cbook.CallbackRegistry() try: self.axes = None diff --git a/lib/matplotlib/container.py b/lib/matplotlib/container.py index 97c3ac4dec15..2abc4d4a1f9e 100644 --- a/lib/matplotlib/container.py +++ b/lib/matplotlib/container.py @@ -18,7 +18,6 @@ def __new__(cls, *args, **kwargs): return tuple.__new__(cls, args[0]) def __init__(self, kl, label=None): - self.eventson = False # fire events only if eventson self._callbacks = cbook.CallbackRegistry() self._remove_method = None self.set_label(label)