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

Skip to content

Commit 5850150

Browse files
committed
Ignore the axes patch
1 parent 3f20d3a commit 5850150

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/matplotlib/backend_bases.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2795,6 +2795,8 @@ def mouse_move(self, event):
27952795
pass
27962796
else:
27972797
artists = event.inaxes.hitlist(event)
2798+
if event.inaxes.patch in artists:
2799+
artists.remove(event.inaxes.patch)
27982800
artists.sort(key=lambda x: x.zorder)
27992801
if artists:
28002802
s += artists[-1].get_zdata(event)

0 commit comments

Comments
 (0)