biocore / calour

exploratory and interactive microbiome analyses based on heatmaps
BSD 3-Clause "New" or "Revised" License
27 stars 22 forks source link

warning for changing colormap for heatmap when doing plot() #257

Closed amnona closed 2 years ago

amnona commented 2 years ago

deprecation warning: calour/calour/heatmap/heatmap.py:308: MatplotlibDeprecationWarning: You are modifying the state of a globally registered colormap. In future versions, you will not be able to modify a registered colormap in-place. To remove this warning, you can make a copy of the colormap first. cmap = copy.copy(mpl.cm.get_cmap("viridis")) cmap.set_bad(bad_color)