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

Function test_marker_cycle

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

Source from the content-addressed store, hash-verified

18
19
20def test_marker_cycle():
21 fig, ax = plt.subplots()
22 ax.set_prop_cycle(cycler('c', ['r', 'g', 'y']) +
23 cycler('marker', ['.', '*', 'x']))
24 for _ in range(4):
25 ax.plot(range(10), range(10))
26 assert [l.get_color() for l in ax.lines] == ['r', 'g', 'y', 'r']
27 assert [l.get_marker() for l in ax.lines] == ['.', '*', 'x', '.']
28
29
30def test_valid_marker_cycles():

Callers

nothing calls this directly

Calls 6

cyclerFunction · 0.85
subplotsMethod · 0.45
set_prop_cycleMethod · 0.45
plotMethod · 0.45
get_colorMethod · 0.45
get_markerMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…