()
| 148 | |
| 149 | @image_comparison(['logscale_mask.png'], remove_text=True, style='_classic_test') |
| 150 | def test_logscale_mask(): |
| 151 | # Check that zero values are masked correctly on log scales. |
| 152 | # See github issue 8045 |
| 153 | xs = np.linspace(0, 50, 1001) |
| 154 | |
| 155 | fig, ax = plt.subplots() |
| 156 | ax.plot(np.exp(-xs**2)) |
| 157 | fig.canvas.draw() |
| 158 | ax.set(yscale="log", |
| 159 | yticks=10.**np.arange(-300, 0, 24)) # Backcompat tick selection. |
| 160 | |
| 161 | |
| 162 | def test_extra_kwargs_raise(): |