8000 picker may not be callable. · matplotlib/matplotlib@3fde643 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3fde643

Browse files
committed
picker may not be callable.
1 parent 424d3b0 commit 3fde643

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/artist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ def pick(self, mouseevent):
437437
# Pick self
438438
if self.pickable():
439439
picker = self.get_picker()
440-
if picker is not None:
440+
if callable(picker):
441441
inside, prop = picker(self, mouseevent)
442442
else:
443443
inside, prop = self.contains(mouseevent)

0 commit comments

Comments
 (0)
0