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

Method contains_path

lib/matplotlib/path.py:615–624  ·  view source on GitHub ↗

Return whether this (closed) path completely contains the given path. If *transform* is not ``None``, the path will be transformed before checking for containment.

(self, path, transform=None)

Source from the content-addressed store, hash-verified

613 return result.astype('bool')
614
615 def contains_path(self, path, transform=None):
616 """
617 Return whether this (closed) path completely contains the given path.
618
619 If *transform* is not ``None``, the path will be transformed before
620 checking for containment.
621 """
622 if transform is not None:
623 transform = transform.frozen()
624 return _path.path_in_path(self, None, path, transform)
625
626 def get_extents(self, transform=None, **kwargs):
627 """

Callers 1

test_contains_pathFunction · 0.95

Calls 1

frozenMethod · 0.45

Tested by 1

test_contains_pathFunction · 0.76