1
我有数据(如一系列(x,y,z)点),我需要使用实际光谱颜色(从(红外)红色到(超)根据z,紫色包括绿色)。所以我需要热图像
gnuplot:热图如3d表面的可见光谱
那么,我该如何做到这一点?
除了着色之外,一切都很好。
如果有必要,有我的gnuplot脚本:
set hidden3d
set dgrid3d 47*4,205*1 gauss 2
set pm3d
set cbrange[1.007694:1.210099]
set xrange [] reverse
unset ztics
unset key
set view 10,70
set xlabel "x"
set ylabel "y"
set ticslevel 0
set term postscript eps enhanced monochrome
set output "plot-m.eps"
splot 'plot.d' with lines
set term postscript eps enhanced color
set output "plot-c.eps"
replot
set terminal png size 1024,768 enhanced font "DejaVu Serif,20"
set output "plot-c.png"
replot
谢谢您的回答,结果正是我想要的。但似乎我发现[更简单的事情](https://yassernour.wordpress.com/2009/08/08/creating-high-quality-plots-using-gnuplot/):'set palette rgbformulae 22,13, -31'但它不完全相同。将会发现它是如何工作的以及如何调整它... – Abelisto
你可以将你的示例调色板图像加载到一些能够进行图像处理(matlab/octave等)的软件中,并将颜色分解为R,G和B分量,然后这些组件的近似曲线以获得拟合函数,然后您可以应用我的方法。 –