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

Function test_make_compound_path_stops

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

Source from the content-addressed store, hash-verified

234
235
236def test_make_compound_path_stops():
237 zero = [0, 0]
238 paths = 3*[Path([zero, zero], [Path.MOVETO, Path.STOP])]
239 compound_path = Path.make_compound_path(*paths)
240 # the choice to not preserve the terminal STOP is arbitrary, but
241 # documented, so we test that it is in fact respected here
242 assert np.sum(compound_path.codes == Path.STOP) == 0
243
244
245@image_comparison(['xkcd.png'], remove_text=True, style='_classic_test')

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…