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

Home » Public Forums » archive » Why the contour does not show?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Why the contour does not show? [message #63962 is a reply to message #63877] Fri, 21 November 2008 16:27 Go to previous messageGo to previous message
David Fanning is currently offline  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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Returning up the stack after error
Next Topic: Nothing to do with IDL

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

Current Time: Fri Oct 10 17:51:08 PDT 2025

Total time taken to generate the page: 0.16345 seconds