Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
TST: test for big floats in array being clipped properly if clim reset
  • Loading branch information
jklymak committed Feb 26, 2018
commit 4529d6f8106527817f1af87a1208e76a4ffa4ce0
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions lib/matplotlib/tests/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,19 @@ def test_imshow_bignumbers():
pc = ax.imshow(img)
pc.set_clim(0, 5)


@image_comparison(baseline_images=['imshow_bignumbers_real'],
remove_text=True, style='mpl20',
extensions=['png'])
def test_imshow_bignumbers_real():
# putting a big number in an array of integers shouldn't
# ruin the dynamic range of the resolved bits.
fig, ax = plt.subplots()
img = np.array([[2., 1., 1.e22],[4., 1., 3.]])
pc = ax.imshow(img)
pc.set_clim(0, 5)


@pytest.mark.parametrize(
"make_norm",
[colors.Normalize,
Expand Down