From 397c98be54e592df893c5963ff87b59200d2bb04 Mon Sep 17 00:00:00 2001 From: Ian Hincks Date: Fri, 8 Feb 2019 09:13:25 -0500 Subject: [PATCH] switched from color_cycle to prop_cycle this was a name change in matplotlib 1.5, and the old name is now deprecated --- src/qinfer/tomography/plotting_tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qinfer/tomography/plotting_tools.py b/src/qinfer/tomography/plotting_tools.py index 7cfbb01..13d5c82 100644 --- a/src/qinfer/tomography/plotting_tools.py +++ b/src/qinfer/tomography/plotting_tools.py @@ -171,7 +171,7 @@ def plot_rebit_prior(prior, rebit_axes=REBIT_AXES, :param np.ndarray true_state: State to be plotted as a "true" state for comparison. """ - pallette = plt.rcParams['axes.color_cycle'] + pallette = plt.rcParams['axes.prop_cycle'] plot_rebit_modelparams(prior.sample(n_samples), c=pallette[0], @@ -225,7 +225,7 @@ def plot_rebit_posterior(updater, prior=None, true_state=None, n_std=3, rebit_ax :param str region_est_method: Method to use to draw region estimation. Must be one of None, ``'cov'`` or ``'hull'``. """ - pallette = plt.rcParams['axes.color_cycle'] + pallette = plt.rcParams['axes.prop_cycle'] plot_rebit_modelparams(updater.particle_locations, c=pallette[0],