We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 541a786 commit d522504Copy full SHA for d522504
lib/matplotlib/collections.py
@@ -2218,6 +2218,7 @@ def get_cursor_data(self, event):
2218
contained, info = self.contains(event)
2219
if len(info["ind"]) == 1:
2220
ind, = info["ind"]
2221
- return self.get_array()[ind]
+ array = self.get_array()
2222
+ return self.get_array()[ind] if array else None
2223
else:
2224
return None
0 commit comments