From 75f59241856e4177327d13a6723f5119addd84c0 Mon Sep 17 00:00:00 2001 From: Sylwester Arabas Date: Tue, 4 Jun 2024 18:03:50 +0200 Subject: [PATCH] matplotlib deprecation fix (#428) --- examples/PyMPDATA_examples/Shipway_and_Hill_2012/plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/PyMPDATA_examples/Shipway_and_Hill_2012/plot.py b/examples/PyMPDATA_examples/Shipway_and_Hill_2012/plot.py index 7ce73bbd..18d237e7 100644 --- a/examples/PyMPDATA_examples/Shipway_and_Hill_2012/plot.py +++ b/examples/PyMPDATA_examples/Shipway_and_Hill_2012/plot.py @@ -89,7 +89,7 @@ def plot_3d(psi, settings, options, r_min, r_max, max_height): ax = pylab.subplot(projection="3d") ax.view_init(75, 85) - cmap = matplotlib.cm.get_cmap("gray_r") + cmap = matplotlib.colormaps["gray_r"] min_height = 0 dz = np.rot90(psi, 2).flatten()