saezlab / decoupler-py

Python package to perform enrichment analysis from omics data.
https://decoupler-py.readthedocs.io/
GNU General Public License v3.0
145 stars 21 forks source link

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

Closed zhaleh-safikhani closed 1 week ago

zhaleh-safikhani commented 1 month ago

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

PauBadiaM commented 1 month ago

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 commented 1 week ago

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