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 1ff14f1 commit 8b97f26Copy full SHA for 8b97f26
lib/matplotlib/collections.py
@@ -2200,6 +2200,9 @@ def get_cursor_data(self, event):
2200
if len(info["ind"]) == 1:
2201
ind, = info["ind"]
2202
array = self.get_array()
2203
- return array[ind] if array else None
+ if array is not None:
2204
+ return array[ind]
2205
+ else:
2206
+ return None
2207
else:
2208
return None
0 commit comments