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

Matplotlib deprecation warnings #53

Closed
christopherlovell opened this issue Aug 31, 2023 · 3 comments
Closed

Matplotlib deprecation warnings #53

christopherlovell opened this issue Aug 31, 2023 · 3 comments
Labels
feature request New idea or feature request

Comments

@christopherlovell
Copy link

On matplotlib 3.7 I am getting the following errors when importing and using cmasher

MatplotlibDeprecationWarning: The get_cmap function was deprecated in Matplotlib 3.7 and will be removed two minor releases later. 
Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead.
cmap = mplcm.get_cmap(cmap)

And the following:

MatplotlibDeprecationWarning: The register_cmap function was deprecated in Matplotlib 3.7 and will be removed two minor releases later. 
Use ``matplotlib.colormaps.register(name)`` instead.
mplcm.register_cmap(cmap=cmap_mpl_r)

These methods should be updated as described.

@neutrinoceros
Copy link
Collaborator

This looks like a dup' of #43
FYI the problem is already addressed on the dev branch, what's missing is a release.

@neutrinoceros
Copy link
Collaborator

Also see #79 and #74 .
I'm preparing a new release for which this problem is the main motivation.

@neutrinoceros neutrinoceros pinned this issue Dec 17, 2023
@neutrinoceros
Copy link
Collaborator

This is now resolved with the release of CMasher 1.7
see https://github.com/1313e/CMasher/releases/tag/v1.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New idea or feature request
Projects
None yet
Development

No branches or pull requests

2 participants