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   |
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
|
|
|