8000 Move artist sort to within if block · matplotlib/matplotlib@1e2aac3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1e2aac3

Browse files
committed
Move artist sort to within if block
1 parent 254de31 commit 1e2aac3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2788,8 +2788,9 @@ def mouse_move(self, event):
27882788
artists = event.inaxes.hitlist(event)
27892789
if event.inaxes.patch in artists:
27902790
artists.remove(event.inaxes.patch)
2791 5B18 -
artists.sort(key=lambda x: x.zorder)
2791+
27922792
if artists:
2793+
artists.sort(key=lambda x: x.zorder)
27932794
a = artists[-1]
27942795
data = a.get_cursor_data(event)
27952796
if data is not None:

0 commit comments

Comments
 (0)
0