File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -558,7 +558,7 @@ def table(ax,
558
558
# assume just colours are needed
559
559
rows = len (cellColours )
560
560
cols = len (cellColours [0 ])
561
- cellText = [['' ] * rows ] * cols
561
+ cellText = [['' ] * cols ] * rows
562
562
563
563
rows = len (cellText )
564
564
cols = len (cellText [0 ])
Original file line number Diff line number Diff line change 5
5
6
6
import matplotlib .pyplot as plt
7
7
import numpy as np
8
- from matplotlib .testing .decorators import image_comparison
8
+ from matplotlib .testing .decorators import image_comparison , cleanup
9
9
10
10
from matplotlib .table import CustomCell
11
11
from matplotlib .path import Path
12
12
from nose .tools import assert_equal
13
13
14
14
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
+
15
22
@image_comparison (baseline_images = ['table_zorder' ],
16
23
extensions = ['png' ],
17
24
remove_text = True )
You can’t perform that action at this time.
0 commit comments