On Wed, 22 Apr 2026 14:43:17 +0000
Patrick Alken via gnuplot-info <gnu...@li...>
wrote:
For gradients:
set palette defined ( 0 "red", 0.1 "white", 1 "blue" )
For sharp transitions, double the position param:
set palette defined ( 0 "red", 0.1 "red", 0.1 "white", 0.2 "white", 0.2
"blue", 1 "blue" )
Either way:
plot "data" u 1:2:3 lc pal
Also check:
test palette
Note: The positions w/in "set palette" are
relative, they do not (automatically)
correspond to values from the plot range.
Also consider:
set cbrange
Best,
Ph.
> Hello,
>
> I am struggling to make a plot with a nonlinear color bar. I want
> the colors themselves to be nonlinear rather than the tic marks. My
> detailed question is here:
>
> https://stackoverflow.com/questions/79929626/how-to-make-a-nonlinear-color-bar
>
> Any help is appreciated,
> Patrick
>
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> Membership management via:
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
--
Philipp K. Janert
www.janert.me
|