Masking images with NaN did not work for grayscale images
()
| 311 | |
| 312 | @image_comparison(['grayscale_alpha.pdf'], style='_classic_test') |
| 313 | def test_grayscale_alpha(): |
| 314 | """Masking images with NaN did not work for grayscale images""" |
| 315 | x, y = np.ogrid[-2:2:.1, -2:2:.1] |
| 316 | dd = np.exp(-(x**2 + y**2)) |
| 317 | dd[dd < .1] = np.nan |
| 318 | fig, ax = plt.subplots() |
| 319 | ax.imshow(dd, interpolation='none', cmap='gray_r') |
| 320 | ax.set_xticks([]) |
| 321 | ax.set_yticks([]) |
| 322 | |
| 323 | |
| 324 | @mpl.style.context('default') |
nothing calls this directly
no test coverage detected
searching dependent graphs…