MPAS-Dev / MPAS-Tools

MPAS Tools Repository
Other
38 stars 64 forks source link

Fix registering colormaps #574

Closed xylar closed 3 months ago

xylar commented 3 months ago

plt.register_cmap() seems to have been removed in the latest matplotlib.

xylar commented 3 months ago

Testing

I was able to run:

from mpas_tools.viz.colormaps import register_sci_viz_colormaps
register_sci_viz_colormaps()

with matplotlib 3.9.0, whereas it failed without this fix.

xylar commented 3 months ago

This also seems to fix the error I was seeing in Compass.