There seems to be some confusion here, maybe on my part, maybe on yours.
The mechanism I suggested is relevant to coloring modes that use RGB
colors. That's what I thought you originally asked about.
It sounds like you have decided to use palette colors instead?
That's fine, but without seeing the script you are using I can't say
what is wrong with the color mapping. Here are some things
to keep in mind.
- The color palette is always defined in the range 0 to 1
- This is mapped to a different numerical range using the
commands "set cbrange [low:high]" or "set auto cb" etc
- If the surface being colored contains a value outside of the
range, it is assigned the color at the extreme of the palette
(0 or 1).
- If you want that extreme value to be separate from the gradient
spanning the rest of the range [0:1] you can define a palette
containing two parts.
Here is an example:
set palette defined (0 "black", 0 "black", 0 "green", 1 "white")
set cbrange [50:100]
splot FOO using 1:2:3:4 with pm3d
This defines a palette that runs smoothly from green to white over the
numerical range 50 to 100. Values greater than 100 are mapped
to white. However values <= 50 are mapped to black rather than green.
I know from past experience that I'm terrible at explaining how the
color palette works, so if the above is unclear it's probably my fault.
Give it another try and look through more of the demos now that
they are back on-line.
Ethan