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

Function test_extents_with_ignored_codes

lib/matplotlib/tests/test_path.py:123–129  ·  view source on GitHub ↗
(ignored_code)

Source from the content-addressed store, hash-verified

121
122@pytest.mark.parametrize('ignored_code', [Path.CLOSEPOLY, Path.STOP])
123def test_extents_with_ignored_codes(ignored_code):
124 # Check that STOP and CLOSEPOLY points are ignored when calculating extents
125 # of a path with only straight lines
126 path = Path([[0, 0],
127 [1, 1],
128 [2, 2]], [Path.MOVETO, Path.MOVETO, ignored_code])
129 assert np.all(path.get_extents().extents == (0., 0., 1., 1.))
130
131
132def test_point_in_path_nan():

Callers

nothing calls this directly

Calls 2

get_extentsMethod · 0.95
PathClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…