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

Skip to content

Commit d0612fb

Browse files
committed
add regression test for set_norm
1 parent bb85590 commit d0612fb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/matplotlib/tests/test_image.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,11 +441,18 @@ def test_zoom_and_clip_upper_origin():
441441
ax.set_xlim(-0.5, 2.0)
442442

443443

444+
@cleanup
444445
def test_nonuniformimage_setcmap():
445446
ax = plt.gca()
446447
im = NonUniformImage(ax)
447448
im.set_cmap('Blues')
448449

450+
@cleanup
451+
def test_nonuniformimage_setnorm():
452+
ax = plt.gca()
453+
im = NonUniformImage(ax)
454+
im.set_norm(plt.Normalize())
455+
449456
if __name__=='__main__':
450457
import nose
451458
nose.runmodule(argv=['-s','--with-doctest'], exit=False)

0 commit comments

Comments
 (0)