MPAS-Dev / MPAS-Tools

MPAS Tools Repository
Other
37 stars 63 forks source link

Fix re-registering of colormaps #430

Closed xylar closed 3 years ago

xylar commented 3 years ago

Matplotlib will complain if we try to re-register a colormap that has already been registered.

xylar commented 3 years ago

Testing

I tested this in a script that generates several ocean meshes on the sphere. With master, I got warnings about reregistering existing colormaps that are gone when I retested with this branch.

The same approach has been used in MPAS-Analysis.