Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 641304c

Browse files
committed
Specify hitlist on axes instead of figure
1 parent 02456b8 commit 641304c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/backend_bases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2794,7 +2794,7 @@ def mouse_move(self, event):
27942794
except (ValueError, OverflowError):
27952795
pass
27962796
else:
2797-
artists = self.figure.hitlist(event)
2797+
artists = event.inaxes.hitlist(event)
27982798
artists.sort(key=lambda x: x.zorder)
27992799
if artists:
28002800
s += artists[-1].get_zdata(event)

0 commit comments

Comments
 (0)