Closed yilvzhishi closed 1 year ago
Note that the matplotlib version is different in your two enviroments.
I guess it is because you just cannot import colormaps
from matplotlib 3.4, no matter you have installed proplot or not.
Confirmed: matplotlib.colormaps was introduced in 3.5 https://matplotlib.org/stable/users/prev_whats_new/whats_new_3.5.0.html#colors-and-colormaps
Yep, right now the stable release 0.9.7 is only compatible with matplotlib <= 3.4. However the "dev" version has 3.5.X compatibility (you can install with pip install git+https://github.com/proplot-dev/proplot
).
When I have not installed the proplot by conda-forge in a conda env ,I can import the colormaps and colors form matplotlib,but when i install matplotlib and proplot in an env ,i find that i can't import the colormaps and colors from the matplotlib,and i create a new conda env to test in addition,i also found the question,hope the team of proplot can note and solve this issue.
When I test an env that only installed matplotlib, this env "pygis" only have matplotlib and not have proplot installed. But when i change an env which have the matplotlib and proplot installed together,it can't work and raise an error. This env "test" have the matplotlib and proplot,please see: