From e2d183c28dac6672a16fb40f83a34dc82b37388e Mon Sep 17 00:00:00 2001 From: fernanda itoda Date: Sat, 2 Sep 2023 19:06:02 -0300 Subject: [PATCH] fix set_pickradius and set_picker conflict --- lib/matplotlib/lines.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/lines.py b/lib/matplotlib/lines.py index 92d55a3fe6ae..7ba6d9f99c25 100644 --- a/lib/matplotlib/lines.py +++ b/lib/matplotlib/lines.py @@ -623,7 +623,7 @@ def set_picker(self, p): p : float or callable[[Artist, Event], tuple[bool, dict]] If a float, it is used as the pick radius in points. """ - if not callable(p): + if isinstance(p, float): self.set_pickradius(p) self._picker = p 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