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

Function test_linestylecycle_basic

lib/matplotlib/tests/test_cycles.py:45–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43
44
45def test_linestylecycle_basic():
46 fig, ax = plt.subplots()
47 ax.set_prop_cycle(cycler('ls', ['-', '--', ':']))
48 for _ in range(4):
49 ax.plot(range(10), range(10))
50 assert [l.get_linestyle() for l in ax.lines] == ['-', '--', ':', '-']
51
52
53def test_fillcycle_basic():

Callers

nothing calls this directly

Calls 5

cyclerFunction · 0.85
subplotsMethod · 0.45
set_prop_cycleMethod · 0.45
plotMethod · 0.45
get_linestyleMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…