【发布时间】:2017-09-15 12:26:06
【问题描述】:
我正在使用以下脚本
set term pngcairo font ",18" enh size 1400,1400
set view map
set key at screen 1, 0.9
unset surface
set contour base
set cntrparam levels incremental 0.00, 0.06, 2
#
set linetype 2 lc rgb "#8F2FFF"
set linetype 3 lc rgb "#8F2FFF"
set linetype 4 lc rgb "#8F2FFF"
set linetype 5 lc rgb "#2F30FF"
set linetype 6 lc rgb "#2F30FF"
set linetype 7 lc rgb "#2F8EFF"
set linetype 8 lc rgb "#2F8EFF"
set linetype 9 lc rgb "#2FFFD6"
set linetype 10 lc rgb "#2FFFD6"
set linetype 11 lc rgb "#35FF2F"
set linetype 12 lc rgb "#35FF2F"
set linetype 13 lc rgb "#FEFF2F"
set linetype 14 lc rgb "#FEFF2F"
set linetype 15 lc rgb "#FFAF2F"
set linetype 16 lc rgb "#FFAF2F"
set linetype 17 lc rgb "#FF362F"
set linetype 18 lc rgb "#FF362F"
set xra[0.:12]
set yra[0.:12]
set xtics out nomirror
set ytics axis in offset -4.0,0 nomirror
set out "foo.png"
splot sin(x) * cos(y) w l lw 4
我现在的问题是,虽然我使用了set cntrparam levels incremental 0.00, 0.06, 2,但我仍然得到了最大轮廓值0.96。谁能告诉我如何强制 gnuplot 将轮廓范围固定为2。第二个问题是:是否可以颠倒颜色标签顺序,使其从低值开始到高值?换句话说,我希望 gnuplot 在标签顶部用洋红色线显示零值,依此类推,直到用红线在标签底部显示最高值。
【问题讨论】: