@image_comparison(baseline_images=[u'tight_layout3'])
def test_tight_layout3():
 fig = plt.figure()
 ax1 = plt.subplot(221)
 ax2 = plt.subplot(223)
 ax3 = plt.subplot(122)
 example_plot(ax1)
 example_plot(ax2)
 example_plot(ax3)
 plt.tight_layout()

@ image_comparison ( baseline_images = [ u'tight_layout3' ] ) def test_tight_layout3 ( ) : fig = plt . figure ( ) ax1 = plt . subplot ( 221 ) ax2 = plt . subplot ( 223 ) ax3 = plt . subplot ( 122 ) example_plot ( ax1 ) example_plot ( ax2 ) example_plot ( ax3 ) plt . tight_layout ( )
test tight_layout for mutiple subplots .