From 04548a32053a582a56bfc3355bf5afbcaf62e9be Mon Sep 17 00:00:00 2001 From: Michael Wathen <15614849+wathen@users.noreply.github.com> Date: Mon, 20 May 2024 14:08:12 +0100 Subject: [PATCH] Fixing colourmap in pyfabm tutorial (#130) --- github-actions/pyfabm-ersem/pyfabm_tut.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/github-actions/pyfabm-ersem/pyfabm_tut.py b/github-actions/pyfabm-ersem/pyfabm_tut.py index 2bcb64c..f1d79c3 100644 --- a/github-actions/pyfabm-ersem/pyfabm_tut.py +++ b/github-actions/pyfabm-ersem/pyfabm_tut.py @@ -1,4 +1,3 @@ -from matplotlib import cm import matplotlib.pylab as plt import numpy as np import os @@ -70,7 +69,7 @@ def main(): axes = plt.gca() # Set color map - cmap = cm.get_cmap('YlOrRd') + cmap = plt.colormaps.get_cmap('YlOrRd') # Plot plot = axes.pcolormesh(salinity_array,