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
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: