Closed johanez closed 4 months ago
Exception has occurred: ImportError cannot import name 'get_cmap' from 'matplotlib.cm' (.venv/lib/python3.11/site-packages/matplotlib/cm.py)
See Matplotlib API changes 3.9.0
" Top-level cmap registration and access functions in mpl.cm As part of the multi-step refactoring of colormap registration, the following functions have been removed:
matplotlib.cm.get_cmap; use matplotlib.colormaps[name] instead if you have a str.
matplotlib.cm.get_cmap
matplotlib.colormaps[name]
Use matplotlib.cm.ColormapRegistry.get_cmap if you have a str, None or a matplotlib.colors.Colormap object that you want to convert to a Colormap object.
[...]
The matplotlib.pyplot.get_cmap function will stay available for backward compatibility. "
See Matplotlib API changes 3.9.0
" Top-level cmap registration and access functions in mpl.cm As part of the multi-step refactoring of colormap registration, the following functions have been removed:
matplotlib.cm.get_cmap
; usematplotlib.colormaps[name]
instead if you have a str.Use matplotlib.cm.ColormapRegistry.get_cmap if you have a str, None or a matplotlib.colors.Colormap object that you want to convert to a Colormap object.
[...]
The matplotlib.pyplot.get_cmap function will stay available for backward compatibility. "