Skip to content

Commit

Permalink
Merge pull request #7 from andrenarchy/use-prop-cycle
Browse files Browse the repository at this point in the history
use prop_cycle instead of color_cycle
  • Loading branch information
andrenarchy authored Nov 29, 2018
2 parents 4c5c529 + ea83c80 commit 61efca9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pseudopy/nonnormal.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ def __init__(self, A,
def plot(self, epsilons, **kwargs):
contours = pyplot.contour(self.Real, self.Imag, self.Vals,
levels=epsilons,
colors=pyplot.rcParams['axes.color_cycle'])
colors=pyplot.rcParams['axes.prop_cycle'].by_key()['color']
)
plot_finish(contours, **kwargs)
return contours

Expand Down
2 changes: 1 addition & 1 deletion pseudopy/normal.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def plot(self, epsilons, **kwargs):
Y += list(numpy.imag(path.vertices[:-1]))
Z += [epsilon] * (len(path.vertices) - 1)
contours = pyplot.tricontour(X, Y, Z, levels=epsilons,
colors=pyplot.rcParams['axes.color_cycle']
colors=pyplot.rcParams['axes.prop_cycle'].by_key()['color']
)
plot_finish(contours, **kwargs)
return contours
Expand Down

0 comments on commit 61efca9

Please sign in to comment.