()
| 4596 | |
| 4597 | |
| 4598 | def 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() |