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

Can't set colormap index using color name #1860

Open
chaosphere2112 opened this issue Feb 26, 2016 · 3 comments
Open

Can't set colormap index using color name #1860

chaosphere2112 opened this issue Feb 26, 2016 · 3 comments

Comments

@chaosphere2112
Copy link
Contributor

import vcs
cmap = vcs.createcolormap()
cmap.index[5] = "blue"
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/uvcdat/2.4.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/vcs/colormap.py", line 170, in __setitem__
    'Must be either a list object, tuple object, or integer value.')
ValueError: Must be either a list object, tuple object, or integer value.
@aashish24
Copy link
Contributor

createcolormap create an array of rgba now. Was it working before?

@doutriaux1 doutriaux1 modified the milestones: 3.0, 2.6 May 25, 2016
@chaosphere2112
Copy link
Contributor Author

Needs to also support setcolorcell() and setcolorindex()

@chaosphere2112
Copy link
Contributor Author

setindex()*

@doutriaux1 doutriaux1 modified the milestones: 3.0, 3.2 Mar 29, 2019
@downiec downiec removed this from the 8.2 milestone Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants