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

Function test_imshow_bignumbers

lib/matplotlib/tests/test_image.py:1098–1105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1096
1097@image_comparison(['imshow_bignumbers.png'], remove_text=True, style='mpl20')
1098def 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'],

Callers

nothing calls this directly

Calls 3

imshowMethod · 0.80
subplotsMethod · 0.45
set_climMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…