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.cm.get_cmap is removed from version 3.9 #127

Closed
zhaleh-safikhani opened this issue May 18, 2024 · 2 comments
Closed

matplotlib.cm.get_cmap is removed from version 3.9 #127

zhaleh-safikhani opened this issue May 18, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@zhaleh-safikhani
Copy link

matplotlib.cm.get_cmap is used in marsilea to get color map and you call it in plot_associations.
so now I get this error: module 'matplotlib.cm' has no attribute 'get_cmap'
For reference
https://matplotlib.org/stable/api/prev_api_changes/api_changes_3.9.0.html

@zhaleh-safikhani zhaleh-safikhani added the bug Something isn't working label May 18, 2024
@PauBadiaM PauBadiaM self-assigned this May 20, 2024
@PauBadiaM
Copy link
Collaborator

Hi @zhaleh-safikhani ,

Thanks for the heads up! I've checked and this new version seems to still be unstable (I cannot seem to make matplotlib.cm.ColormapRegistry.get_cmap work) so I'll wait until they solve their issues. For the time being, keep matplotlib version to anything below 3.9.0.

@PauBadiaM
Copy link
Collaborator

Actually you are right, the code only fails when using marsilea, I've already opened an issue in their repository: Marsilea-viz/marsilea#35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants