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

Viridis exists but not in plt.cm.datad.keys() #6316

Closed
pllim opened this issue Apr 18, 2016 · 1 comment
Closed

Viridis exists but not in plt.cm.datad.keys() #6316

pllim opened this issue Apr 18, 2016 · 1 comment

Comments

@pllim
Copy link

pllim commented Apr 18, 2016

Matplotlib version is 1.5.1 from Anaconda.

>>> import matplotlib.pyplot as plt
>>> plt.get_cmap('viridis')
<matplotlib.colors.ListedColormap at ...>
>>> names = plt.cm.datad.keys()
>>> 'viridis' in names
False

I don't understand why Viridis colormap is in the software but it is not part of colormap names in plt.cm.datad keys. Is this intentional or a bug?

@pllim
Copy link
Author

pllim commented Apr 19, 2016

Okay, I can find it in

>>> from matplotlib import cm
>>> 'viridis' in cm.cmap_d
True

@pllim pllim closed this as completed Apr 19, 2016
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

1 participant