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

Function test_property_collision_fill

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

Source from the content-addressed store, hash-verified

94
95
96def test_property_collision_fill():
97 fig, ax = plt.subplots()
98 ax.set_prop_cycle(linewidth=[2, 3, 4, 5, 6], facecolor='bgcmy')
99 t = range(10)
100 for c in range(1, 4):
101 ax.fill(t, t, lw=0.1)
102 ax.fill(t, t)
103 ax.fill(t, t)
104 assert ([p.get_facecolor() for p in ax.patches]
105 == [mpl.colors.to_rgba(c) for c in 'bgcmy'])
106 assert [p.get_linewidth() for p in ax.patches] == [0.1, 0.1, 0.1, 5, 6]
107
108
109def test_valid_input_forms():

Callers

nothing calls this directly

Calls 6

subplotsMethod · 0.45
set_prop_cycleMethod · 0.45
fillMethod · 0.45
get_facecolorMethod · 0.45
to_rgbaMethod · 0.45
get_linewidthMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…