(make_norm)
| 1124 | lambda: colors.SymLogNorm(1), |
| 1125 | lambda: colors.PowerNorm(1)]) |
| 1126 | def test_empty_imshow(make_norm): |
| 1127 | fig, ax = plt.subplots() |
| 1128 | with pytest.warns(UserWarning, |
| 1129 | match="Attempting to set identical low and high xlims"): |
| 1130 | im = ax.imshow([[]], norm=make_norm()) |
| 1131 | im.set_extent([-5, 5, -5, 5]) |
| 1132 | fig.canvas.draw() |
| 1133 | |
| 1134 | with pytest.raises(RuntimeError): |
| 1135 | im.make_image(fig.canvas.get_renderer()) |
| 1136 | |
| 1137 | |
| 1138 | def test_imshow_float16(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…