From ea83c80ab2b98b8edcb5e3477b7f041eca6d4ee5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Gaul?= Date: Thu, 29 Nov 2018 10:27:11 +0100 Subject: [PATCH] use prop_cycle instead of color_cycle --- pseudopy/nonnormal.py | 3 ++- pseudopy/normal.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pseudopy/nonnormal.py b/pseudopy/nonnormal.py index 43b8af9..45fb7b7 100644 --- a/pseudopy/nonnormal.py +++ b/pseudopy/nonnormal.py @@ -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 diff --git a/pseudopy/normal.py b/pseudopy/normal.py index b79ba19..7a41c72 100644 --- a/pseudopy/normal.py +++ b/pseudopy/normal.py @@ -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