8000 PEP8 fixed - sankey.py · matplotlib/matplotlib@77da3b6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 77da3b6

Browse files
committed
PEP8 fixed - sankey.py
1 parent 06aedf7 commit 77da3b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/sankey.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def __init__(self, ax=None, scale=1.0, unit='', format='%G', gap=0.25,
151151
.. plot:: mpl_examples/api/sankey_demo_basics.py
152152
"""
153153
# Check the arguments.
154-
if gap <0:
154+
if gap < 0:
155155
raise ValueError(
156156
"The gap is negative.\nThis isn't allowed because it "
157157
"would cause the paths to overlap.")
@@ -522,12 +522,12 @@ def add(self, patchlabel='', flows=None, orientations=None, labels='',
522522
"The index of the prior diagram is %d, but there are "
523523
"only %d other diagrams.\nThe index is zero-based."
524524
% (prior, len(self.diagrams)))
525-
if connect[0] >= len(self.diagrams[prior].flows):
525+
if connect[0] >= len(self.diagrams[prior].flows):
526526
raise ValueError(
527527
"The connection index to the source diagram is %d, but "
528528
"that diagram has only %d flows.\nThe index is zero-based."
529529
% (connect[0], len(self.diagrams[prior].flows)))
530-
if connect[1] >= n:
530+
if connect[1] >= n:
531531
raise ValueError(
532532
"The connection index to this diagram is %d, but this diagram"
533533
"has only %d flows.\n The index is zero-based."

0 commit comments

Comments
 (0)
0