Skip to content

Commit ade2696

Browse files
committed
Merge pull request matplotlib#1378 from NelleV/pep8_stackplot
PEP8 fixes on stackplot.py
2 parents 1135592 + cadc2b1 commit ade2696

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/matplotlib/stackplot.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
88
"""
99
import numpy as np
10-
import matplotlib
1110

1211
__all__ = ['stackplot']
1312

@@ -51,9 +50,11 @@ def stackplot(axes, x, *args, **kwargs):
5150
r = []
5251

5352
# Color between x = 0 and the first array.
54-
r.append(axes.fill_between(x, 0, y_stack[0,:], facecolor=axes._get_lines.color_cycle.next(), **kwargs))
53+
r.append(axes.fill_between(x, 0, y_stack[0, :],
54+
facecolor=axes._get_lines.color_cycle.next(), **kwargs))
5555

5656
# Color between array i-1 and array i
57-
for i in xrange(len(y)-1):
58-
r.append(axes.fill_between(x, y_stack[i,:], y_stack[i+1,:], facecolor=axes._get_lines.color_cycle.next(), **kwargs))
57+
for i in xrange(len(y) - 1):
58+
r.append(axes.fill_between(x, y_stack[i, :], y_stack[i + 1, :],
59+
facecolor=axes._get_lines.color_cycle.next(), **kwargs))
5960
return r

0 commit comments

Comments
 (0)