Skip to content

Commit

Permalink
Fixing colourmap in pyfabm tutorial (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
wathen authored May 20, 2024
1 parent 49c3fd7 commit 04548a3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions github-actions/pyfabm-ersem/pyfabm_tut.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from matplotlib import cm
import matplotlib.pylab as plt
import numpy as np
import os
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 04548a3

Please sign in to comment.