I was running cooltools in my conda virtual environment, where I installed cooltools 0.7.1 via pip and matplotlib 3.10 via conda
I ran into such error messages:
ImportError
----> 6 from matplotlib.cm import register_cmap
ImportError: cannot import name 'register_cmap' from 'matplotlib.cm' (/home/cheng/miniconda3/envs/rotation/lib/python3.10/site-packages/matplotlib/cm.py)
ModuleNotFoundError
----> 8 from matplotlib.colormaps import register
ModuleNotFoundError: No module named 'matplotlib.colormaps'
Modifications I did:
I downgraded the matplotlib in my environment from 3.10 to 3.7 and the code is working now