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

colormap need user level func to set colorindices #1484

Closed
doutriaux1 opened this issue Aug 7, 2015 · 0 comments · Fixed by #1553
Closed

colormap need user level func to set colorindices #1484

doutriaux1 opened this issue Aug 7, 2015 · 0 comments · Fixed by #1553
Assignees
Milestone

Comments

@doutriaux1
Copy link
Contributor

Bill Hayes reported:

v = vcs.init()
cm = v.createcolormap('cm', 'default')
cm.color = 0, 99,99,99     # does NOT set the color  (but does not error)

However the following works to set and get values:

cm.index[0] = [99,99,99]   # this works
cm.index[0]    # returns the RGB list

THe user here is using internal/private functions
The correct call is

v.setcolormap(cm.name)
v.setcolorcell(0,99,99,99)

However, since 2.2 graphic methods are allowed to have their own colormap so we should have actual function on the colormap object to set the colors (rather that the private ones only)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant