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

Method set_picker

lib/matplotlib/lines.py:620–631  ·  view source on GitHub ↗

Set the event picker details for the line. Parameters ---------- p : float or callable[[Artist, Event], tuple[bool, dict]] If a float, it is used as the pick radius in points.

(self, p)

Source from the content-addressed store, hash-verified

618 return self._markevery
619
620 def set_picker(self, p):
621 """
622 Set the event picker details for the line.
623
624 Parameters
625 ----------
626 p : float or callable[[Artist, Event], tuple[bool, dict]]
627 If a float, it is used as the pick radius in points.
628 """
629 if not callable(p):
630 self.set_pickradius(p)
631 self._picker = p
632
633 def get_bbox(self):
634 """Get the bounding box of this line."""

Callers 4

__init__Method · 0.45
test_pickingFunction · 0.45
pick_event_demo.pyFile · 0.45
legend_picking.pyFile · 0.45

Calls 1

set_pickradiusMethod · 0.95

Tested by 1

test_pickingFunction · 0.36