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

Function test_colorcycle_basic

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

Source from the content-addressed store, hash-verified

10
11
12def test_colorcycle_basic():
13 fig, ax = plt.subplots()
14 ax.set_prop_cycle(cycler('color', ['r', 'g', 'y']))
15 for _ in range(4):
16 ax.plot(range(10), range(10))
17 assert [l.get_color() for l in ax.lines] == ['r', 'g', 'y', 'r']
18
19
20def test_marker_cycle():

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…