8000 PEP8 fixed - spines.py, table.py · matplotlib/matplotlib@95ae2cd · GitHub
[go: up one dir, main page]

Skip to content

Commit 95ae2cd

Browse files
committed
PEP8 fixed - spines.py, table.py
1 parent 77da3b6 commit 95ae2cd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/matplotlib/spines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ def set_position(self, position):
375375
# special positions
376376
pass
377377
else:
378-
if len(position) != 2:
378+
if len(position) != 2:
379379
raise ValueError("position should be 'center' or 2-tuple")
380380
if position[0] not in ['outward', 'axes', 'data']:
381381
msg = "position[0] should be in ['outward', 'axes', 'data']"

lib/matplotlib/table.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,15 +483,15 @@ def table(ax,
483483
cols = len(cellText[0])
484484
for row in cellText:
485485
if len(row) != cols:
486-
msg = "Each row in 'cellText' must have {} columns"
486+
msg = "Each row in 'cellText' must have {} columns"
487487
raise ValueError(msg.format(cols))
488488

489489
if cellColours is not None:
490490
if len(cellColours) != rows:
491491
raise ValueError("'cellColours' must have {} rows".format(rows))
492492
for row in cellColours:
493493
if len(row) != cols:
494-
msg = "Each row in 'cellColours' must have {} columns"
494+
msg = "Each row in 'cellColours' must have {} columns"
495495
raise ValueError(msg.format(cols))
496496
else:
497497
cellColours = ['w' * cols] * rows

0 commit comments

Comments
 (0)
0