@image_comparison(baseline_images=[u'tight_layout4'], freetype_version=(u'2.4.5', u'2.4.9'))
def test_tight_layout4():
 fig = plt.figure()
 ax1 = plt.subplot2grid((3, 3), (0, 0))
 ax2 = plt.subplot2grid((3, 3), (0, 1), colspan=2)
 ax3 = plt.subplot2grid((3, 3), (1, 0), colspan=2, rowspan=2)
 ax4 = plt.subplot2grid((3, 3), (1, 2), rowspan=2)
 example_plot(ax1)
 example_plot(ax2)
 example_plot(ax3)
 example_plot(ax4)
 plt.tight_layout()

@ image_comparison ( baseline_images = [ u'tight_layout4' ] , freetype_version = ( u'2.4.5' , u'2.4.9' ) ) def test_tight_layout4 ( ) : fig = plt . figure ( ) ax1 = plt . subplot2grid ( ( 3 , 3 ) , ( 0 , 0 ) ) ax2 = plt . subplot2grid ( ( 3 , 3 ) , ( 0 , 1 ) , colspan = 2 ) ax3 = plt . subplot2grid ( ( 3 , 3 ) , ( 1 , 0 ) , colspan = 2 , rowspan = 2 ) ax4 = plt . subplot2grid ( ( 3 , 3 ) , ( 1 , 2 ) , rowspan = 2 ) example_plot ( ax1 ) example_plot ( ax2 ) example_plot ( ax3 ) example_plot ( ax4 ) plt . tight_layout ( )
test tight_layout for subplot2grid .