matplotlib / cmocean

Colormap setup for standardizing commonly-plotting oceanographic variables.
MIT License
230 stars 52 forks source link

Import cmocean does not import plots #60

Closed fischcheng closed 5 years ago

fischcheng commented 8 years ago

Thanks for the great work. It's a wonderful module!

I tried installing cmocean through anaconda and pip, for both python2 and python3.

However, a simple call import cmocean doesn't import the plots. So the example shown on the documentation page can't be reproduced. I tried to locate the package, and found that plots.py is there, just not in the __init__.py. Was this intentional?

Also, it seems that, cmocean requires thecolorspacious module, whose dependency has not been checked with either pip or conda.

Cheers,

kthyng commented 8 years ago

Right, plots isn't imported with the package anymore because it included some adjustments to the fonts locally. Though actually it looks like I took that out. In any case, you can just import it with import cmocean.plots.

Were you able to install with pip and conda (conda-forge channel)?

fischcheng commented 8 years ago

Yes, cmocean was succesfully installed from pip and conda. But when I loaded in cmocean.plots and tried the few examples, it said that the colorspacious module is missing.

kthyng commented 5 years ago

Hi there. This should be addressed as of the release this summer actually. You can install with

pip install "cmocean[plots]"

if you want all packages associated with the plots function in cmocean.