umr-amap / amap-rs

AMAP Remote Sensing Toolbox
Other
0 stars 0 forks source link

no attribute 'get_cmap' when using get_colors_for_values #4

Open ptresson opened 3 months ago

ptresson commented 3 months ago

https://github.com/umr-amap/amap-rs/blob/6b12c7a06823426ed7c15a5551c049d198bee9fe/src/amaprs/utils/misc.py#L102

cf . https://stackoverflow.com/questions/52251582/matplotlib-has-no-attribute-cm-when-deploying-an-app

Should be because of matplotlib version (if >3.9)

changing with

    cmap = plt.get_cmap(cmap_name)

seems to be working