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

Function test_fillcycle_basic

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

Source from the content-addressed store, hash-verified

51
52
53def test_fillcycle_basic():
54 fig, ax = plt.subplots()
55 ax.set_prop_cycle(cycler('c', ['r', 'g', 'y']) +
56 cycler('hatch', ['xx', 'O', '|-']) +
57 cycler('linestyle', ['-', '--', ':']))
58 for _ in range(4):
59 ax.fill(range(10), range(10))
60 assert ([p.get_facecolor() for p in ax.patches]
61 == [mpl.colors.to_rgba(c) for c in ['r', 'g', 'y', 'r']])
62 assert [p.get_hatch() for p in ax.patches] == ['xx', 'O', '|-', 'xx']
63 assert [p.get_linestyle() for p in ax.patches] == ['-', '--', ':', '-']
64
65
66def test_fillcycle_ignore():

Callers

nothing calls this directly

Calls 8

cyclerFunction · 0.85
subplotsMethod · 0.45
set_prop_cycleMethod · 0.45
fillMethod · 0.45
get_facecolorMethod · 0.45
to_rgbaMethod · 0.45
get_hatchMethod · 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…