@image_comparison(baseline_images=[u'tight_layout5'])
def test_tight_layout5():
 fig = plt.figure()
 ax = plt.subplot(111)
 arr = np.arange(100).reshape((10, 10))
 ax.imshow(arr, interpolation=u'none')
 plt.tight_layout()

@ image_comparison ( baseline_images = [ u'tight_layout5' ] ) def test_tight_layout5 ( ) : fig = plt . figure ( ) ax = plt . subplot ( 111 ) arr = np . arange ( 100 ) . reshape ( ( 10 , 10 ) ) ax . imshow ( arr , interpolation = u'none' ) plt . tight_layout ( )
test tight_layout for image .