Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import cmocean does not import plots #60

Closed
fischcheng opened this issue Sep 1, 2016 · 3 comments
Closed

Import cmocean does not import plots #60

fischcheng opened this issue Sep 1, 2016 · 3 comments

Comments

@fischcheng
Copy link

fischcheng commented Sep 1, 2016

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
Copy link
Contributor

kthyng commented Sep 1, 2016

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
Copy link
Author

fischcheng commented Sep 2, 2016

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
Copy link
Contributor

kthyng commented Jan 10, 2019

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.

@kthyng kthyng closed this as completed Jan 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants