Re: getting procedures to use proper color index via LOADCT, x [message #10656 is a reply to message #10655] |
Mon, 22 December 1997 00:00  |
rivers
Messages: 228 Registered: March 1991
|
Senior Member |
|
|
In article <ELK5uC.1G0.A.ebony@news.trentu.ca>, dmarshall@ivory.trentu.ca writes:
> A lurker de-lurks:
>
> I am running Student Version IDL 5.0 on Windows 95
>
> I cannot get procedures like SURFACE etc to access the loaded color table.
>
> LOADCT, 5
>
> Gives me no problem, no error messages and it confirms loading the table.
>
> But then my plots only ever show up in various shades of red.
> I confirm this by running CINDEX.
It sounds like your display is set to True Color. Do HELP, /DEVICE to check.
If it is then doing SURFACE, COLOR='50'x will produce a red plot. However
doing SURFACE, COLOR='505050'x will draw using the correct color in your
lookup table. True color in IDL is pretty tricky, and not very will documented
IMHO. David Fanning's Web page has some very useful tips.
You can also simply change your display to 256 colors, but then you have the
limitations of a limited color map.
____________________________________________________________
Mark Rivers (773) 702-2279 (office)
CARS (773) 702-9951 (secretary)
Univ. of Chicago (773) 702-5454 (FAX)
5640 S. Ellis Ave. (708) 922-0499 (home)
Chicago, IL 60637 rivers@cars.uchicago.edu (e-mail)
or:
Argonne National Laboratory (630) 252-0422 (office)
Building 434A (630) 252-0405 (lab)
9700 South Cass Avenue (630) 252-1713 (beamline)
Argonne, IL 60439 (630) 252-0443 (FAX)
|
|
|