()
| 131 | |
| 132 | |
| 133 | def test_set_drawstyle(): |
| 134 | x = np.linspace(0, 2*np.pi, 10) |
| 135 | y = np.sin(x) |
| 136 | |
| 137 | fig, ax = plt.subplots() |
| 138 | line, = ax.plot(x, y) |
| 139 | line.set_drawstyle("steps-pre") |
| 140 | assert len(line.get_path().vertices) == 2*len(x)-1 |
| 141 | |
| 142 | line.set_drawstyle("default") |
| 143 | assert len(line.get_path().vertices) == len(x) |
| 144 | |
| 145 | |
| 146 | @image_comparison(['line_collection_dashes'], remove_text=True, style='mpl20', |
nothing calls this directly
no test coverage detected
searching dependent graphs…