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

Method _picker

lib/matplotlib/offsetbox.py:1581–1585  ·  view source on GitHub ↗
(artist, mouseevent)

Source from the content-addressed store, hash-verified

1579
1580 @staticmethod
1581 def _picker(artist, mouseevent):
1582 # A custom picker to prevent dragging on mouse scroll events
1583 if mouseevent.name == "scroll_event":
1584 return False, {}
1585 return artist.contains(mouseevent)
1586
1587 # A property, not an attribute, to maintain picklability.
1588 canvas = property(lambda self: self.ref_artist.get_figure(root=True).canvas)

Callers

nothing calls this directly

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected