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

Function test_errorbar_colorcycle

lib/matplotlib/tests/test_axes.py:4598–4610  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4596
4597
4598def test_errorbar_colorcycle():
4599
4600 f, ax = plt.subplots()
4601 x = np.arange(10)
4602 y = 2*x
4603
4604 e1, _, _ = ax.errorbar(x, y, c=None)
4605 e2, _, _ = ax.errorbar(x, 2*y, c=None)
4606 ln1, = ax.plot(x, 4*y)
4607
4608 assert mcolors.to_rgba(e1.get_color()) == mcolors.to_rgba('C0')
4609 assert mcolors.to_rgba(e2.get_color()) == mcolors.to_rgba('C1')
4610 assert mcolors.to_rgba(ln1.get_color()) == mcolors.to_rgba('C2')
4611
4612
4613@check_figures_equal()

Callers

nothing calls this directly

Calls 5

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