()
| 18 | |
| 19 | |
| 20 | def test_marker_cycle(): |
| 21 | fig, ax = plt.subplots() |
| 22 | ax.set_prop_cycle(cycler('c', ['r', 'g', 'y']) + |
| 23 | cycler('marker', ['.', '*', 'x'])) |
| 24 | for _ in range(4): |
| 25 | ax.plot(range(10), range(10)) |
| 26 | assert [l.get_color() for l in ax.lines] == ['r', 'g', 'y', 'r'] |
| 27 | assert [l.get_marker() for l in ax.lines] == ['.', '*', 'x', '.'] |
| 28 | |
| 29 | |
| 30 | def test_valid_marker_cycles(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…