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

Home » Public Forums » archive » Re: How to plot multiple cgContour plots using the same colour levels (but containing differing data)
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: How to plot multiple cgContour plots using the same colour levels (but containing differing data) [message #76401 is a reply to message #76400] Mon, 30 May 2011 17:31 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Balt writes:

> I think I may have found the solution: Clip the colour palette like
> this:
>
> cgLoadCT, 20, RGB_Table=pal, CLIP=[0, max(data)/max_temp*255]
>
> - max_temp contains the maximum temperature in any of the data sets.
> - data is a vector containing the temperatures for the current plot.
>
> Does that make sense or is this a "it works by chance"?

It is a "work by chance" solution. I have color bars with
"out of bounds" colors added to them. Maybe I'll just add
them to cgColorbar. :-)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.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
Previous Topic: call ITK from IDL
Next Topic: Error with cg output and ImageMagick

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

Current Time: Wed Oct 08 18:16:39 PDT 2025

Total time taken to generate the page: 0.00193 seconds