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

Function test_interpolated_moveto

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

Source from the content-addressed store, hash-verified

614
615
616def test_interpolated_moveto():
617 # Initial path has two subpaths with two LINETOs each
618 vertices = np.array([[0, 0],
619 [0, 1],
620 [1, 2],
621 [4, 4],
622 [4, 5],
623 [5, 5]])
624 codes = [Path.MOVETO, Path.LINETO, Path.LINETO] * 2
625
626 path = Path(vertices, codes)
627 result = path.interpolated(3)
628
629 # Result should have two subpaths with six LINETOs each
630 expected_subpath_codes = [Path.MOVETO] + [Path.LINETO] * 6
631 np.testing.assert_array_equal(result.codes, expected_subpath_codes * 2)
632
633
634def test_interpolated_closepoly():

Callers

nothing calls this directly

Calls 2

interpolatedMethod · 0.95
PathClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…