Parameters vmin, vmax should error if norm is given.
()
| 1258 | |
| 1259 | |
| 1260 | def test_imshow_norm_vminvmax(): |
| 1261 | """Parameters vmin, vmax should error if norm is given.""" |
| 1262 | a = [[1, 2], [3, 4]] |
| 1263 | ax = plt.axes() |
| 1264 | with pytest.raises(ValueError, |
| 1265 | match="Passing a Normalize instance simultaneously " |
| 1266 | "with vmin/vmax is not supported."): |
| 1267 | ax.imshow(a, norm=mcolors.Normalize(-10, 10), vmin=0, vmax=5) |
| 1268 | |
| 1269 | |
| 1270 | @image_comparison(['polycollection_joinstyle'], remove_text=True, style='_classic_test') |