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

Method contains

lib/matplotlib/offsetbox.py:1431–1437  ·  view source on GitHub ↗
(self, mouseevent)

Source from the content-addressed store, hash-verified

1429 self.stale = True
1430
1431 def contains(self, mouseevent):
1432 if self._different_canvas(mouseevent):
1433 return False, {}
1434 if not self._check_xy(None):
1435 return False, {}
1436 return self.offsetbox.contains(mouseevent)
1437 # self.arrow_patch is currently not checked as this can be a line - JJ
1438
1439 def get_children(self):
1440 children = [self.offsetbox, self.patch]

Callers

nothing calls this directly

Calls 3

_different_canvasMethod · 0.80
_check_xyMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected