()
| 1096 | |
| 1097 | @image_comparison(['imshow_bignumbers.png'], remove_text=True, style='mpl20') |
| 1098 | def test_imshow_bignumbers(): |
| 1099 | rcParams['image.interpolation'] = 'nearest' |
| 1100 | # putting a big number in an array of integers shouldn't |
| 1101 | # ruin the dynamic range of the resolved bits. |
| 1102 | fig, ax = plt.subplots() |
| 1103 | img = np.array([[1, 2, 1e12], [3, 1, 4]], dtype=np.uint64) |
| 1104 | pc = ax.imshow(img) |
| 1105 | pc.set_clim(0, 5) |
| 1106 | |
| 1107 | |
| 1108 | @image_comparison(['imshow_bignumbers_real.png'], |