Matrix Gnuplot中矩阵热图的z范围阈值

Matrix Gnuplot中矩阵热图的z范围阈值,matrix,gnuplot,Matrix,Gnuplot,背景: 我有一个由行I和列j组成的互相关矩阵,只有z值在-1和1之间。我能够使用以下脚本输出漂亮的热图: unset key set tic scale 1 set xtics out set ytics out set palette defined (-1 "red", 0 "white", 1 "blue") set cbrange [-1:1] set cblabel "Correlation Function" unset cbtics set size ratio 1 set xra

背景: 我有一个由行I和列j组成的互相关矩阵,只有z值在-1和1之间。我能够使用以下脚本输出漂亮的热图:

unset key
set tic scale 1
set xtics out
set ytics out
set palette defined (-1 "red", 0 "white", 1 "blue")
set cbrange [-1:1]
set cblabel "Correlation Function"
unset cbtics
set size ratio 1
set xrange [0:588]
set yrange [0:588]
set view map
splot 'file.dat' matrix with image
问题是:
我想“筛选”某些z值,这样-0.50≤ Z≤ 绘制时不考虑0.50。

对此进行了进一步思考,并采纳了Christoph提供的建议。为了实现我的目标,我改变了路线:

设置已定义的调色板(-1“红色”,0“白色”,1“蓝色”)

…致:

设置调色板定义(-1“红色”、-0.5“白色”、0.5“白色”、1“蓝色”)


工作起来很有魅力。

这些价值观会发生什么变化?它们不能消失;)如果希望整个范围为白色,请更改调色板定义,否则请进行更详细的解释。