libAudioFlux / audioFlux

A library for audio and music analysis, feature extraction.
https://audioflux.top
MIT License
2.76k stars 118 forks source link

ImportError with Matplotlib 3.9.0 #37

Closed johanez closed 4 months ago

johanez commented 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.

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. "