如何设置调色板对称gnuplot

How to set palette symmetric gnuplot

你知道如何设置对称调色板颜色吗? 我的意思是 dark/blue for z=0, red/orange z=1.5 and z=-1.5 and yellow z=3 z=-3 在颜色级别之间仍然有渐变颜色。

如果你有什么想法好吗?谢谢!

到目前为止你的代码是什么?你检查过help,尤其是help palette吗? 检查以下示例:

代码:

 ### defined symmetric palette
reset session
set size square

set palette defined (0 'yellow', 1 'red', 2 'dark-blue', 3 'black', 4 'dark-blue', 5 'red', 6 'yellow')

set samples 100
set isosamples 100

plot '++' u 1:2:(sqrt(abs(*))*1.2-3) w image notitle
### end of code

结果: