MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_imshow_norm_vminvmax

Function test_imshow_norm_vminvmax

lib/matplotlib/tests/test_axes.py:1260–1267  ·  view source on GitHub ↗

Parameters vmin, vmax should error if norm is given.

()

Source from the content-addressed store, hash-verified

1258
1259
1260def 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')

Callers

nothing calls this directly

Calls 2

imshowMethod · 0.80
axesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…