File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -586,7 +586,7 @@ def table(ax,
586586 # assume just colours are needed
587587 rows = len (cellColours )
588588 cols = len (cellColours [0 ])
589- cellText = [['' ] * rows ] * cols
589+ cellText = [['' ] * cols ] * rows
590590
591591 rows = len (cellText )
592592 cols = len (cellText [0 ])
Original file line number Diff line number Diff line change 55
66import matplotlib .pyplot as plt
77import numpy as np
8- from matplotlib .testing .decorators import image_comparison
8+ from matplotlib .testing .decorators import image_comparison , cleanup
99
1010from matplotlib .table import CustomCell
1111from matplotlib .path import Path
1212from nose .tools import assert_equal
1313
1414
15+ @cleanup
16+ def test_non_square ():
17+ # Check that creating a non-square table works
18+ cellcolors = ['b' , 'r' ]
19+ plt .table (cellColours = cellcolors )
20+
21+
1522@image_comparison (baseline_images = ['table_zorder' ],
1623 extensions = ['png' ],
1724 remove_text = True )
You can’t perform that action at this time.
0 commit comments