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

Function test_make_compound_path_empty

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

Source from the content-addressed store, hash-verified

221
222
223def test_make_compound_path_empty():
224 # We should be able to make a compound path with no arguments.
225 # This makes it easier to write generic path based code.
226 empty = Path.make_compound_path()
227 assert empty.vertices.shape == (0, 2)
228 r2 = Path.make_compound_path(empty, empty)
229 assert r2.vertices.shape == (0, 2)
230 assert r2.codes.shape == (0,)
231 r3 = Path.make_compound_path(Path([(0, 0)]), empty)
232 assert r3.vertices.shape == (1, 2)
233 assert r3.codes.shape == (1,)
234
235
236def test_make_compound_path_stops():

Callers

nothing calls this directly

Calls 2

PathClass · 0.90
make_compound_pathMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…