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

Skip to content

Commit 2b10e52

Browse files
authored
avoid re-using get_array()
1 parent ec7e6ac commit 2b10e52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/collections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2202,6 +2202,6 @@ def get_cursor_data(self, event):
22022202
if len(info["ind"]) == 1:
22032203
ind, = info["ind"]
22042204
array = self.get_array()
2205-
return self.get_array()[ind] if array else None
2205+
return array[ind] if array else None
22062206
else:
22072207
return None

0 commit comments

Comments
 (0)