Re: Why the contour does not show? [message #63962 is a reply to message #63877] |
Fri, 21 November 2008 16:27   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
xiao writes:
> Sorry I have to ask again, i tried to scaled my data, and the result
> is right, but when I try to plot it, it just show me very few colors
> (almost bright color) Is it because of my color table? David? Thank
> you. BTW: i did scale it from 0 to 255.
Well, I don't think the CONTOUR command knows anything
about 24-bit colors. He is older, even, than I am. :-)
It's an odd color table, but why don't you just
load the colors and then tell the Contour command
to use an index into the color table, like this:
TVLCT, r, g, b
IF (!D.Flags AND 256) NE 0 THEN $
Device, Decomposed=0, Get_Decomposed=theState
CONTOUR, ....., C_Colors=Indgen(64), ....
IF (!D.Flags AND 256) NE 0 THEN $
Device, Decomposed=theState
That might work better. At least it is a place to start.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|