I want to have two different gradients. Is this possible with two different palettes? And yes, how to declare them?
相关问题
- How to set a variable line width when plotting?
- How to create PNG images with more than 72dpi usin
- image gradient angle computation
- Gradient as a Buttons BorderColor?
- How to do a Gradient effect from topLeft to bottto
相关文章
- Gnuplot - Using replot with png terminal
- Gnuplot multiplot with one colorbox
- Multiple points/colors gradient on HTML5 canvas
- WPF 3D - mapping gradient brush on complex geometr
- Unable to save Gnuplot png from within c#
- Programmatic gradient stops with Javascript
- One colour gradient according to value in column s
- star symbols in gnuplot
I guess the problem is that you don't set a fixed
cbrange
. The numerical values given in theset paletted defined
statement are relative values. According to your previous questions you scale the color to the range[-1:1]
. In that case, your relative values in the palette definition and those in the plots coincide. However, if you have only positive or only negative values, then you have effectively acbrange
of[-1:0]
or[0:1]
. Just use aset cbrange [-1:1]
and it should work.The following minimal example shows your first what happens without setting a cbrange, and then in the second plot the result with a fixed
cbrange
:The file
test.txt
contains the valuesThe gnuplot script is:
The result with 4.6.3: