10BC0
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9275214 commit 3509b3bCopy full SHA for 3509b3b
lib/matplotlib/artist.py
@@ -320,7 +320,11 @@ def pick(self, mouseevent):
320
for a in self.get_children():
321
# make sure the event happened in the same axes
322
ax = getattr(a, 'axes', None)
323
- if mouseevent.inaxes==ax:
+ if mouseevent.inaxes is None or mouseevent.inaxes==ax:
324
+ # we need to check if mouseevent.inaxes is None
325
+ # because some objects associated with an axes (eg a
326
+ # tick label) can be outside the bounding box of the
327
+ # axes and inaxes will be None
328
a.pick(mouseevent)
329
330
def set_picker(self, picker):
0 commit comments