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

Function test_contains_path

lib/matplotlib/tests/test_path.py:77–80  ·  view source on GitHub ↗
(other_path, inside, inverted_inside)

Source from the content-addressed store, hash-verified

75 (Path([(0, 0), (0, 1), (1, 1), (1, 0), (0, 0)], closed=True), False, False),
76 (Path([(2, 2), (2, 3), (3, 3), (3, 2), (2, 2)], closed=True), False, False)])
77def test_contains_path(other_path, inside, inverted_inside):
78 path = Path([(0, 0), (0, 1), (1, 1), (1, 0), (0, 0)], closed=True)
79 assert path.contains_path(other_path) is inside
80 assert other_path.contains_path(path) is inverted_inside
81
82
83def test_contains_points_negative_radius():

Callers

nothing calls this directly

Calls 2

contains_pathMethod · 0.95
PathClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…