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

Method contains

lib/matplotlib/text.py:2078–2085  ·  view source on GitHub ↗
(self, mouseevent)

Source from the content-addressed store, hash-verified

2076 Text.__init__(self, x, y, text, **kwargs)
2077
2078 def contains(self, mouseevent):
2079 if self._different_canvas(mouseevent):
2080 return False, {}
2081 contains, tinfo = Text.contains(self, mouseevent)
2082 if self.arrow_patch is not None:
2083 in_patch, _ = self.arrow_patch.contains(mouseevent)
2084 contains = contains or in_patch
2085 return contains, tinfo
2086
2087 @property
2088 def xycoords(self):

Callers

nothing calls this directly

Calls 2

_different_canvasMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected