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

Method contains

lib/matplotlib/figure.py:293–304  ·  view source on GitHub ↗

Test whether the mouse event occurred on the figure. Returns ------- bool, {}

(self, mouseevent)

Source from the content-addressed store, hash-verified

291 "use the `get_figure` method."))
292
293 def contains(self, mouseevent):
294 """
295 Test whether the mouse event occurred on the figure.
296
297 Returns
298 -------
299 bool, {}
300 """
301 if self._different_canvas(mouseevent):
302 return False, {}
303 inside = self.bbox.contains(mouseevent.x, mouseevent.y)
304 return inside, {}
305
306 def get_window_extent(self, renderer=None):
307 # docstring inherited

Callers

nothing calls this directly

Calls 1

_different_canvasMethod · 0.80

Tested by

no test coverage detected