【发布时间】:2015-01-08 17:22:45
【问题描述】:
使用 gnuplot,我正在使用以下命令绘制存储在文件中的矩阵:
set title "Matrix"
set xrange[-0.5:9.5]
set yrange[9.5:-0.5]
set pm3d map
unset key
unset surface
set term postscript eps enhanced color
set out "matrix.eps"
set palette defined (-1 "#A52A2A", 0 "white", 1 "green" )
splot "matcorrel" matrix with image
矩阵有正值和负值,我想把零值放在白色,正值放在调色板的绿色区域,负值放在棕色。正值大于负值,因此 gnuplot 不会将零放在白色中。
我尝试过使用set cbrange,但我只设法修改了极端颜色,无法修复中心颜色。
有什么想法吗?提前非常感谢您
【问题讨论】:
标签: matrix colors gnuplot colorbox palette