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

Method contains

lib/matplotlib/transforms.py:417–421  ·  view source on GitHub ↗

Return whether ``(x, y)`` is in the bounding box or on its edge.

(self, x, y)

Source from the content-addressed store, hash-verified

415 return y0 <= y <= y1 or y0 >= y >= y1
416
417 def contains(self, x, y):
418 """
419 Return whether ``(x, y)`` is in the bounding box or on its edge.
420 """
421 return self.containsx(x) and self.containsy(y)
422
423 def overlaps(self, other):
424 """

Callers 1

containsMethod · 0.45

Calls 2

containsxMethod · 0.95
containsyMethod · 0.95

Tested by

no test coverage detected