From d0762c3ded7a1c997c8a057ee33dd5c45a3cf673 Mon Sep 17 00:00:00 2001 From: Tobias Megies Date: Wed, 31 Jan 2018 15:45:33 +0100 Subject: [PATCH] fix detection of which artist(s) the mouse is over since Artist.contains() returns a tuple it is not usable like "if my_artist.contains(): do something" --- lib/matplotlib/backend_bases.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy