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

Function test_point_in_path_nan

lib/matplotlib/tests/test_path.py:132–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130
131
132def test_point_in_path_nan():
133 box = np.array([[0, 0], [1, 0], [1, 1], [0, 1], [0, 0]])
134 p = Path(box)
135 test = np.array([[np.nan, 0.5]])
136 contains = p.contains_points(test)
137 assert len(contains) == 1
138 assert not contains[0]
139
140
141def test_nonlinear_containment():

Callers

nothing calls this directly

Calls 2

contains_pointsMethod · 0.95
PathClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…