Hi there, thank you for developing this helpful visualization package. Also, it's very nice of you to try to cope with the change of API of matplotlib == 3.9.0, as mentioned in issue #35, release v0.4.1.
However, I found that changes in v0.4.1 might not practicable. It still raises errors associated with API changes of matplotlib.
I met the following errors when I used a package called decoupleR which called Heatmap function in marsilea. The version of my packages is marsilea == 0.4.1, matplotlib == 3.9.0.
In utils.py, line 75, your code return mpl.colormap.get(cmap) will lead to an error called AttributeError: module 'matplotlib' has no attribute 'colormap'
In utils.py, line 78, your code return mpl.cm.get_cmap(cmap) will lead to an error called AttributeError: module 'matplotlib.cm' has no attribute 'get_cmap'
In utils.py, line 80, your code return mpl.cm.ColormapRegistry.get_cmap(cmap) will lead to an error called TypeError: get_cmap() missing 1 required positional argument: 'cmap'
I'm not sure whether I'm right, but the code run pretty well after I changed the utils.py as follows.
# Release 0.4.1
return mpl.colormap.get(cmap) # line 75
# Change
return mpl.colormaps.get(cmap) # line 75
Hi there, thank you for developing this helpful visualization package. Also, it's very nice of you to try to cope with the change of API of
matplotlib == 3.9.0
, as mentioned in issue #35, release v0.4.1.However, I found that changes in v0.4.1 might not practicable. It still raises errors associated with API changes of matplotlib.
I met the following errors when I used a package called
decoupleR
which calledHeatmap
function inmarsilea
. The version of my packages ismarsilea == 0.4.1
,matplotlib == 3.9.0
.utils.py
, line 75, your codereturn mpl.colormap.get(cmap)
will lead to an error calledAttributeError: module 'matplotlib' has no attribute 'colormap'
utils.py
, line 78, your codereturn mpl.cm.get_cmap(cmap)
will lead to an error calledAttributeError: module 'matplotlib.cm' has no attribute 'get_cmap'
utils.py
, line 80, your codereturn mpl.cm.ColormapRegistry.get_cmap(cmap)
will lead to an error calledTypeError: get_cmap() missing 1 required positional argument: 'cmap'
I'm not sure whether I'm right, but the code run pretty well after I changed the
utils.py
as follows.Looking forward to hear from you. Thanks!