Skip to content

Commit

Permalink
matplotlib deprecation fix (#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
slayoo authored Jun 4, 2024
1 parent a9bed1e commit 75f5924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/PyMPDATA_examples/Shipway_and_Hill_2012/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 75f5924

Please sign in to comment.