@image_comparison(baseline_images=[u'image_interps'])
def test_image_interps():
 X = np.arange(100)
 X = X.reshape(5, 20)
 fig = plt.figure()
 ax1 = fig.add_subplot(311)
 ax1.imshow(X, interpolation=u'nearest')
 ax1.set_title(u'three interpolations')
 ax1.set_ylabel(u'nearest')
 ax2 = fig.add_subplot(312)
 ax2.imshow(X, interpolation=u'bilinear')
 ax2.set_ylabel(u'bilinear')
 ax3 = fig.add_subplot(313)
 ax3.imshow(X, interpolation=u'bicubic')
 ax3.set_ylabel(u'bicubic')

@ image_comparison ( baseline_images = [ u'image_interps' ] ) def test_image_interps ( ) : X = np . arange ( 100 ) X = X . reshape ( 5 , 20 ) fig = plt . figure ( ) ax1 = fig . add_subplot ( 311 ) ax1 . imshow ( X , interpolation = u'nearest' ) ax1 . set_title ( u'three interpolations' ) ax1 . set_ylabel ( u'nearest' ) ax2 = fig . add_subplot ( 312 ) ax2 . imshow ( X , interpolation = u'bilinear' ) ax2 . set_ylabel ( u'bilinear' ) ax3 = fig . add_subplot ( 313 ) ax3 . imshow ( X , interpolation = u'bicubic' ) ax3 . set_ylabel ( u'bicubic' )
make the basic nearest .