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

Method _contains

lib/matplotlib/widgets.py:3060–3062  ·  view source on GitHub ↗

Return True if event is within the patch.

(self, event)

Source from the content-addressed store, hash-verified

3058 self._extents_on_press = self.extents
3059
3060 def _contains(self, event):
3061 """Return True if event is within the patch."""
3062 return self._selection_artist.contains(event, radius=0)[0]
3063
3064 @staticmethod
3065 def _snap(values, snap_values):

Callers 1

_set_active_handleMethod · 0.95

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected