You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 workscm.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)
The text was updated successfully, but these errors were encountered:
Bill Hayes reported:
However the following works to set and get values:
THe user here is using internal/private functions
The correct call is
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)
The text was updated successfully, but these errors were encountered: