Thanks to visit codestin.com
Credit goes to github.com

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
TST: add flat-field test
  • Loading branch information
tacaswell committed Aug 31, 2017
commit 1aebff1bc19d8abc54d52e31d4ebfa785d89a6cc
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions lib/matplotlib/tests/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,15 @@ def test_imshow_no_warn_invalid():
assert len(warns) == 0


@image_comparison(baseline_images=['imshow_flatfield'],
remove_text=True, style='mpl20',
extensions=['png'])
def test_imshow_flatfield():
fig, ax = plt.subplots()
im = ax.imshow(np.ones((5, 5)))
im.set_clim(.5, 1.5)


def test_empty_imshow():
fig, ax = plt.subplots()
im = ax.imshow([[]])
Expand Down