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

AttributeError: module 'matplotlib.cm' has no attribute 'register_cmap' #3711

Closed
Shravan-aero opened this issue Jun 12, 2024 · 1 comment
Closed

Comments

@Shravan-aero
Copy link

I ran Seaborn earlier, and it was working well. After a month, I ran the same code, which showed the following error:
AttributeError: module 'matplotlib.cm' has no attribute 'register_cmap'. I try installing the Seaborn package and some more updates. It's not working with the same error. The error occurs explicitly while importing the seaborn library, not for matplotlib (matplot is working for other codes), but the same error occurs for another library (i.e. pingouin, etc.).

Capture

@mwaskom
Copy link
Owner

mwaskom commented Jun 12, 2024

Looks like you are not using the latest version of seaborn, which handles this API change in matplotlib: https://github.com/mwaskom/seaborn/blob/master/seaborn/_compat.py#L67

@mwaskom mwaskom closed this as completed Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants