Gnuplot: fixed colors on a palette

I'm using gnuplot to plot a 3D-function at differents times, but I need the colors to be the same always.

For instance, at t=0.1s the maximum value at the graphic is 1.3 and I need that value to be red, but at t=0.5s the maximun is 1.1, then that value is going to be the red one now.

What I need is that the 1.3 value to be red always, 1.1 always to be orange and 0.4 always to be yellow, no matter what the max and min values are.

Could anybody please help me?

Thanks in advance.

Upvotes: 1

Views: 670

Answers (1)

Dan Sp.
Dan Sp.

Reputation: 1447

It is more helpful if you show a minimal plotting commands that show what you are trying to do. For now, you can try using pm3d. It is an splot style for drawing palette-mapped 3d data sets.

set pm3d
set palette defined (0.4 "yellow", 1.1 "orange", 1.3 "red")
splot (Your Function) with pm3d

Upvotes: -1

Related Questions