MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / onpick

Method onpick

lib/matplotlib/lines.py:1717–1724  ·  view source on GitHub ↗

When the line is picked, update the set of selected indices.

(self, event)

Source from the content-addressed store, hash-verified

1715 pass
1716
1717 def onpick(self, event):
1718 """When the line is picked, update the set of selected indices."""
1719 if event.artist is not self.line:
1720 return
1721 self.ind ^= set(event.ind)
1722 ind = sorted(self.ind)
1723 xdata, ydata = self.line.get_data()
1724 self.process_selected(ind, xdata[ind], ydata[ind])
1725
1726
1727lineStyles = Line2D._lineStyles

Callers

nothing calls this directly

Calls 2

process_selectedMethod · 0.95
get_dataMethod · 0.45

Tested by

no test coverage detected