comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » cgimage and color tables
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
cgimage and color tables [message #79568] Mon, 12 March 2012 21:44 Go to previous message
A J is currently offline  A J
Messages: 11
Registered: February 2012
Junior Member
Hello,

I need to display a grid of values, numbered 1-5, each value having a
specific color. What I have been trying to do is something like this:

> color_code = ['grn6', 'dodger blue', 'royal blue', 'salmon', 'pink']

> cgimage, grid, /scale, bottom = 0, top = 4

I don't want to set a predefined color table becasue I want to use the
colors I have chosen above. I have failed in my attempts to create a
color table with just these 5 colors. So how do I get, say, value 3 to
use color_code[2] etc?

Thankyou for your patience,

-Lex
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: How to prevent proliferation of leftover objects when NG plots are included in unit tests.
Next Topic: memory allocation problem

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 00:03:38 PDT 2025

Total time taken to generate the page: 0.64444 seconds