Skip to content

Commit

Permalink
switched from color_cycle to prop_cycle
Browse files Browse the repository at this point in the history
this was a name change in matplotlib 1.5, and the old name is now deprecated
  • Loading branch information
ihincks committed Feb 8, 2019
1 parent 8170c84 commit 397c98b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qinfer/tomography/plotting_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down Expand Up @@ -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],
Expand Down

0 comments on commit 397c98b

Please sign in to comment.