Re: Why the contour does not show? [message #63957 is a reply to message #63877] |
Sat, 22 November 2008 14:27   |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
xiao schrieb:
> On Nov 21, 6:27 pm, David Fanning <n...@dfanning.com> wrote:
>> 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.")
>
> Sorry, David, it does not work :( I am trying to think where the
> problem should be....
please post a complete example of what you have now. That is easier to
understand.
cheers
Reimar
|
|
|