()
| 1108 | @image_comparison(['imshow_bignumbers_real.png'], |
| 1109 | remove_text=True, style='mpl20') |
| 1110 | def test_imshow_bignumbers_real(): |
| 1111 | rcParams['image.interpolation'] = 'nearest' |
| 1112 | # putting a big number in an array of integers shouldn't |
| 1113 | # ruin the dynamic range of the resolved bits. |
| 1114 | fig, ax = plt.subplots() |
| 1115 | img = np.array([[2., 1., 1.e22], [4., 1., 3.]]) |
| 1116 | pc = ax.imshow(img) |
| 1117 | pc.set_clim(0, 5) |
| 1118 | |
| 1119 | |
| 1120 | @pytest.mark.parametrize( |