()
| 64 | |
| 65 | |
| 66 | def test_fillcycle_ignore(): |
| 67 | fig, ax = plt.subplots() |
| 68 | ax.set_prop_cycle(cycler('color', ['r', 'g', 'y']) + |
| 69 | cycler('hatch', ['xx', 'O', '|-']) + |
| 70 | cycler('marker', ['.', '*', 'D'])) |
| 71 | t = range(10) |
| 72 | # Should not advance the cycler, even though there is an |
| 73 | # unspecified property in the cycler "marker". |
| 74 | # "marker" is not a Polygon property, and should be ignored. |
| 75 | ax.fill(t, t, 'r', hatch='xx') |
| 76 | # Allow the cycler to advance, but specify some properties |
| 77 | ax.fill(t, t, hatch='O') |
| 78 | ax.fill(t, t) |
| 79 | ax.fill(t, t) |
| 80 | assert ([p.get_facecolor() for p in ax.patches] |
| 81 | == [mpl.colors.to_rgba(c) for c in ['r', 'r', 'g', 'y']]) |
| 82 | assert [p.get_hatch() for p in ax.patches] == ['xx', 'O', 'O', '|-'] |
| 83 | |
| 84 | |
| 85 | def test_property_collision_plot(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…