diff --git a/lib/matplotlib/backend_bases.py b/lib/matplotlib/backend_bases.py index b39498aedab7..a6661ed5b417 100644 --- a/lib/matplotlib/backend_bases.py +++ b/lib/matplotlib/backend_bases.py @@ -2681,7 +2681,7 @@ def mouse_move(self, event): pass else: artists = [a for a in event.inaxes._mouseover_set - if a.contains(event) and a.get_visible()] + if a.contains(event)[0] and a.get_visible()] if artists: a = cbook._topmost_artist(artists)