Fix MPL deprecation

This commit is contained in:
Ian Bell
2025-04-07 19:36:48 -04:00
parent e3032baf45
commit cde223a6b3

View File

@@ -97,7 +97,7 @@ melt_args = dict(color='orange', lw=lw, solid_capstyle='round')
sat_args = melt_args.copy()
nm = matplotlib.colors.Normalize(min(DD), max(DD))
rho_args = dict(cmap=plt.cm.get_cmap('Blues'), norm=nm)
rho_args = dict(cmap=plt.get_cmap('Blues'), norm=nm)
fig = plt.figure(figsize=(1.0, 1.0))
ax = fig.add_axes((0.0, 0.0, 1.0, 1.0))