@@ -122,6 +122,7 @@ def test_customcell():
122122 code = tuple (s for _ , s in cell .get_path ().iter_segments ())
123123 assert_equal (c , code )
124124
125+
125126@image_comparison (baseline_images = ['table_auto_column' ],
126127 extensions = ['png' ])
127128def test_auto_column ():
@@ -130,8 +131,9 @@ def test_auto_column():
130131 #iteratble list input
131132 ax1 = fig .add_subplot (3 , 1 , 1 )
132133 ax1 .axis ('off' )
133- tb1 = ax1 .table (cellText = [['Fit Text' , 2 ], ['Longer text than default' , 1 ]],
134- rowLabels = ["A" , "B" ],
134+ tb1 = ax1 .table (cellText = [['Fit Text' , 2 ],
135+ ['Longer text than default' , 1 ]],
136+ rowLabels = ["A" , "B" ],
135137 colLabels = ["Col1" , "Col2" ],
136138 loc = "center" )
137139 tb1 .auto_set_font_size (False )
@@ -141,7 +143,8 @@ def test_auto_column():
141143 #iteratble tuple input
142144 ax2 = fig .add_subplot (3 , 1 , 2 )
143145 ax2 .axis ('off' )
144- tb2 = ax2 .table (cellText = [['Fit Text' , 2 ], ['Longer text than default' , 1 ]],
146+ tb2 = ax2 .table (cellText = [['Fit Text' , 2 ],
147+ ['Longer text than default' , 1 ]],
145148 rowLabels = ["A" , "B" ],
146149 colLabels = ["Col1" , "Col2" ],
147150 loc = "center" )
@@ -152,7 +155,8 @@ def test_auto_column():
152155 #3 single input
153156 ax3 = fig .add_subplot (3 , 1 , 3 )
154157 ax3 .axis ('off' )
155- tb3 = ax3 .table (cellText = [['Fit Text' , 2 ], ['Longer text than default' , 1 ]],
158+ tb3 = ax3 .table (cellText = [['Fit Text' , 2 ],
159+ ['Longer text than default' , 1 ]],
156160 rowLabels = ["A" , "B" ],
157161 colLabels = ["Col1" , "Col2" ],
158162 loc = "center" )
0 commit comments