@image_comparison(baseline_images=[u'tight_layout1'])
def test_tight_layout1():
 fig = plt.figure()
 ax = fig.add_subplot(111)
 example_plot(ax, fontsize=24)
 plt.tight_layout()

@ image_comparison ( baseline_images = [ u'tight_layout1' ] ) def test_tight_layout1 ( ) : fig = plt . figure ( ) ax = fig . add_subplot ( 111 ) example_plot ( ax , fontsize = 24 ) plt . tight_layout ( )
test tight_layout for a single subplot .