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

Function test_point_in_path

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

Source from the content-addressed store, hash-verified

53
54
55def test_point_in_path():
56 # Test #1787
57 path = Path._create_closed([(0, 0), (0, 1), (1, 1), (1, 0)])
58 points = [(0.5, 0.5), (1.5, 0.5)]
59 ret = path.contains_points(points)
60 assert ret.dtype == 'bool'
61 np.testing.assert_equal(ret, [True, False])
62
63
64@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

_create_closedMethod · 0.80
contains_pointsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…