We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b30478 commit e964496Copy full SHA for e964496
1 file changed
lib/matplotlib/collections.py
@@ -2196,3 +2196,11 @@ def draw(self, renderer):
2196
gc.restore()
2197
renderer.close_group(self.__class__.__name__)
2198
self.stale = False
2199
+
2200
+ def get_cursor_data(self, event):
2201
+ contained, info = self.contains(event)
2202
+ if len(info["ind"]) == 1:
2203
+ ind, = info["ind"]
2204
+ return self.get_array()[ind]
2205
+ else:
2206
+ return None
0 commit comments