I usually use a data file with the colormap defined in it. An example:

object "indic_cor2" array rank 1 shape 3 items  12 data follows
0.00 0.00 1.00
0.86 0.90 1.00
0.20 1.00 1.00
0.49 1.00 0.00
0.00 0.59 0.00
1.00 1.00 0.00
0.39 0.30 0.69
0.90 0.78 0.00
0.98 0.63 0.00
0.82 0.59 0.45
0.66 0.29 0.39
1.00 0.19 0.00

attribute "dep" string "connections"

object "indic_cor2_pos" array rank 1 shape 1 items  13 data follows
0.00001 .05 .10 .15 .20 .30 .40 .50 .75 1.00 1.25 1.50 4.00
object "indic_cor2_con" gridconnections counts  13
attribute "element type" string "lines"
attribute "ref" string "positions"

object "Indices 2" class field
  component "data" "indic_cor2"
  component "positions" "indic_cor2_pos"
  component "connections" "indic_cor2_con"

Just import variable "Indices 2" and send it to Color, instead of using
Colormap. You will have absolute control on the colormap you want.

Regards,
Jose' Chambel Leitao
|||||||||||||||||||||||||
HIDROMOD, Modelacao em Engenharia, Lda. (http://www.hidromod.pt/)
TAGUSPARK - Nucleo Central, no 349, 2780-920 OEIRAS, PORTUGAL
Tel: (351) 21 421 1373 - Fax: (351) 21 421 1272 - Movel: (351) 91 938 0629
Celular no Brasil: (021) 9101 6669
email: [EMAIL PROTECTED]


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Tobias
> Weissbach
> Sent: quinta-feira, 21 de Fevereiro de 2002 14:13
> To: [email protected]
> Subject: Re: [opendx-users] Colormap-Question
>
>
> Chris Pelkie wrote:
> >
> > >Hello,
> > >
> > >I am generating contour plots with OpenDX where the min and max values
> > >of the
> > >colormap does not match the min and max values of the data. (e.g.
> > >colormap
> > >range is from 0 to 20, but data values can be lower than 0 and higher
> > >than 20)
> > >Is there a possibility to give those out of range data points the
> > >minimum / maximum
> > >color of the colormap instead of not coloring the points at all ? There
> > >is such a feature
> > >for AutoColor (at least for one limit) but I have to use COLOR and
> > >COLORMAP.
> > >
> > >Thanks for any help ...
> > >
> > >Tobias
> >
> > Of course. Don't data-drive the Colormap, so it won't auto-reset to a
> > changing input range, then set whatever min and max you always want.
> >
> > Then add two control points to the HUE curve (double-click). Drag one
> > all the way to the left so you have a vertical line from "good max"
> > up to "real max". Same for min except drag to right to make a
> > vertical line. Result is a roughly "S" or "Z" shaped curve (standing
> > on one end).
> >
> > Note that the curve shape will remain but the values it maps to will
> > change if you data-drive and the range changes. This is rarely
> > desirable.
> > --
> > Chris Pelkie
> > Scientific Visualization Producer
> > 618 Rhodes Hall Cornell Theory Center, Cornell University
> > Ithaca, NY 14853
>
> Actually that is what I did so far for linear colormaps. But now, I want
> to use an exponential
> function for the colormap which will be generated outside dx. I thought
> about adding extra
> points for min and max values, but only thinking about this can drive
> you crazy. This is
> not so easy as it seems. Thats why I wonder if there is another
> possibility.
> I even thought about rewriting the color module, but this is beyond my
> skills.
>
> Any other Ideas ??
>
> Tobias
>

Reply via email to