Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1aebff1

Browse filesBrowse files
committed
TST: add flat-field test
1 parent 346bb1a commit 1aebff1
Copy full SHA for 1aebff1

File tree

Expand file treeCollapse file tree

2 files changed

+9
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+9
-0
lines changed
Loading

‎lib/matplotlib/tests/test_image.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_image.py
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,15 @@ def test_imshow_no_warn_invalid():
780780
assert len(warns) == 0
781781

782782

783+
@image_comparison(baseline_images=['imshow_flatfield'],
784+
remove_text=True, style='mpl20',
785+
extensions=['png'])
786+
def test_imshow_flatfield():
787+
fig, ax = plt.subplots()
788+
im = ax.imshow(np.ones((5, 5)))
789+
im.set_clim(.5, 1.5)
790+
791+
783792
def test_empty_imshow():
784793
fig, ax = plt.subplots()
785794
im = ax.imshow([[]])

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.