File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -375,7 +375,7 @@ def set_position(self, position):
375
375
# special positions
376
376
pass
377
377
else :
378
- if len (position ) != 2 :
378
+ if len (position ) != 2 :
379
379
raise ValueError ("position should be 'center' or 2-tuple" )
380
380
if position [0 ] not in ['outward' , 'axes' , 'data' ]:
381
381
msg = "position[0] should be in ['outward', 'axes', 'data']"
Original file line number Diff line number Diff line change @@ -483,15 +483,15 @@ def table(ax,
483
483
cols = len (cellText [0 ])
484
484
for row in cellText :
485
485
if len (row ) != cols :
486
- msg = "Each row in 'cellText' must have {} columns"
486
+ msg = "Each row in 'cellText' must have {} columns"
487
487
raise ValueError (msg .format (cols ))
488
488
489
489
if cellColours is not None :
490
490
if len (cellColours ) != rows :
491
491
raise ValueError ("'cellColours' must have {} rows" .format (rows ))
492
492
for row in cellColours :
493
493
if len (row ) != cols :
494
- msg = "Each row in 'cellColours' must have {} columns"
494
+ msg = "Each row in 'cellColours' must have {} columns"
495
495
raise ValueError (msg .format (cols ))
496
496
else :
497
497
cellColours = ['w' * cols ] * rows
You can’t perform that action at this time.
0 commit comments