Gnuplot script:
set palette defined (0 "blue", 100 "green", 500 "red")
splot "data" using 1:2:3 with lines lc palette z
Data file:
1 1 1
1 2 1
1 3 500
1 4 1
This results in something like this:
_/\
What I got, is that the 2 slopes are green.
I want them to be red. Or at least reddish.
I suspect that the coloring strategy is to use the color of the midpoint of the line.
How can I change the coloring strategy? ("color by highest point")
ALTERNATIVE:
If it is not possible this way, it would also be acceptable if it is done with another linecolor
option. I have not quite figured it out yet, but I know there is direct coloring.
However, if possible I would prefer a palette-based solution, where I can easily generate a color gradient, and not have to do it manually in the datafile.