()
| 51 | |
| 52 | |
| 53 | def test_fillcycle_basic(): |
| 54 | fig, ax = plt.subplots() |
| 55 | ax.set_prop_cycle(cycler('c', ['r', 'g', 'y']) + |
| 56 | cycler('hatch', ['xx', 'O', '|-']) + |
| 57 | cycler('linestyle', ['-', '--', ':'])) |
| 58 | for _ in range(4): |
| 59 | ax.fill(range(10), range(10)) |
| 60 | assert ([p.get_facecolor() for p in ax.patches] |
| 61 | == [mpl.colors.to_rgba(c) for c in ['r', 'g', 'y', 'r']]) |
| 62 | assert [p.get_hatch() for p in ax.patches] == ['xx', 'O', '|-', 'xx'] |
| 63 | assert [p.get_linestyle() for p in ax.patches] == ['-', '--', ':', '-'] |
| 64 | |
| 65 | |
| 66 | def test_fillcycle_ignore(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…