@image_comparison(baseline_images=[u'bbox_inches_tight_raster'], remove_text=True, savefig_kwarg={u'bbox_inches': u'tight'})
def test_bbox_inches_tight_raster():
 fig = plt.figure()
 ax = fig.add_subplot(111)
 ax.plot([1.0, 2.0], rasterized=True)

@ image_comparison ( baseline_images = [ u'bbox_inches_tight_raster' ] , remove_text = True , savefig_kwarg = { u'bbox_inches' : u'tight' } ) def test_bbox_inches_tight_raster ( ) : fig = plt . figure ( ) ax = fig . add_subplot ( 111 ) ax . plot ( [ 1.0 , 2.0 ] , rasterized = True )
test rasterization with tight_layout .