()
| 1004 | |
| 1005 | |
| 1006 | def test_mask_image_all(): |
| 1007 | # Test behavior with an image that is entirely masked does not warn |
| 1008 | data = np.full((2, 2), np.nan) |
| 1009 | fig, ax = plt.subplots() |
| 1010 | ax.imshow(data) |
| 1011 | fig.canvas.draw_idle() # would emit a warning |
| 1012 | |
| 1013 | |
| 1014 | @image_comparison(['imshow_endianess.png'], remove_text=True, style='_classic_test') |