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 #76402 is a reply to message #76401] Mon, 30 May 2011 16:54 Go to previous messageGo to previous message
Balt is currently offline  Balt
Messages: 16
Registered: May 2010
Junior Member
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"?

Cheers

- Balt

On May 31, 9:30 am, Balt <bindermue...@gmail.com> wrote:
> Hi all,
>
> I have 3 x 3 cgContour plots on one page. I would like the colour
> scale in each of the plots to be the same to facilitate inter-plot
> comparison of the data (and to only require one color bar also). I
> know the min/max values for all datasets, so I was hoping there's a
> simple way to tell cgContour that for plot X, expand the colour scale
> to include the supplied min/max values. That however appears not
> possible. Am I missing something?
>
> Cheers
>
> - Balt
[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 19:27:18 PDT 2025

Total time taken to generate the page: 0.00433 seconds