`register_cmap()` got an unexpected keyword argument 'data'
xylar opened this issue · comments
ILAMB appears not to be compatible with matplotlib >= 3.4.0
. As an example, see this CI build on conda-forge.
Traceback (most recent call last):
File "/home/conda/feedstock_root/build_artifacts/ilamb_1620761448485/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/bin/ilamb-run", line 20, in <module>
if "stoplight" not in plt.colormaps(): RegisterCustomColormaps()
File "/home/conda/feedstock_root/build_artifacts/ilamb_1620761448485/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/lib/python3.9/site-packages/ILAMB/Post.py", line 1030, in RegisterCustomColormaps
plt.register_cmap(name='stoplight', data=RdYlGn)
TypeError: register_cmap() got an unexpected keyword argument 'data'
This feature was apparently deprecated 1 1/2 years ago: matplotlib/matplotlib#15875 in 3.3.0 and was dropped in 3.4.0.
It looks like this was fixed in #33. So I guess what I would be asking for is a new release of ILAMB with this fix.
Thanks @xylar, I have been procrastinating a new release for a while now, updated to 2.6 today. I believe that should fix it.
Thanks so much! I'll give that a try tomorrow and close this, assuming all goes well.
A simple import test certainly works. Thank you very much!