Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix registering colormaps #574

Merged
merged 2 commits into from
Jul 3, 2024
Merged

Conversation

xylar
Copy link
Collaborator

@xylar xylar commented Jul 3, 2024

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

@xylar
Copy link
Collaborator Author

xylar commented Jul 3, 2024

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
Copy link
Collaborator Author

xylar commented Jul 3, 2024

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

@xylar xylar merged commit c309e1f into MPAS-Dev:master Jul 3, 2024
9 checks passed
@xylar xylar deleted the fix-register-colormap branch July 3, 2024 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant