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

Function test_property_collision_plot

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

Source from the content-addressed store, hash-verified

83
84
85def test_property_collision_plot():
86 fig, ax = plt.subplots()
87 ax.set_prop_cycle('linewidth', [2, 4])
88 t = range(10)
89 for c in range(1, 4):
90 ax.plot(t, t, lw=0.1)
91 ax.plot(t, t)
92 ax.plot(t, t)
93 assert [l.get_linewidth() for l in ax.lines] == [0.1, 0.1, 0.1, 2, 4]
94
95
96def test_property_collision_fill():

Callers

nothing calls this directly

Calls 4

subplotsMethod · 0.45
set_prop_cycleMethod · 0.45
plotMethod · 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…