8000 MNT: use Path.MOVETO rather than 1 · matplotlib/matplotlib@1b7541e · GitHub
[go: up one dir, main page]

Skip to content

Commit 1b7541e

Browse files
committed
MNT: use Path.MOVETO rather than 1
1 parent d8a1c97 commit 1b7541e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/patches.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def contains(self, mouseevent, radius=None):
134134
vertices = self.get_path().vertices
135135
# if the current path is concatenated by multiple sub paths.
136136
# get the indexes of the starting code(MOVETO) of all sub paths
137-
idxs, = np.where(codes == 1)
137+
idxs, = np.where(codes == Path.MOVETO)
138138
# Don't split before the first MOVETO.
139139
idxs = idxs[1:]
140140
return any(

0 commit comments

Comments
 (0)
0