我的 gnuplot 3D 热图图形中最高值的关联颜色错误

Wrong associated color for the highest values in my gnuplot 3D heatmap graphic

我正在尝试在 Gnuplot 中使用 pm3d 制作 3D 彩色图。它是立方体中传热问题的热图。因此,我的数据文件中有 4 列:x、z、t 和 T,它们分别是水平坐标、垂直坐标、模拟中的当前时间(此处始终为 t = 0 s)和温度。我想在 3D 中绘制温度随 x 和 z 的变化。

当我用 Gnuplot 做的时候,

set size square
set xlabel("x")
set ylabel("z")
set zlabel("T")
set xrange [-0.01:1.01]
set yrange [-0.01:1.01]
set hidden3d
set palette rgb 33,13,10 
set pm3d implicit at s 
  

splot "para_heat_3D_inta.dat" using 1:2:4 with pm3d notitle
pause mouse keypress" | gnuplot -persist 

我发现最高温度 (373 °K) 未根据颜色条正确表示。事实上,在每个 z = 0 或 z = 1 时,它必须是 T = 373 °K,因为它在我的数据文件中。

我的数据文件如下所示:

  x      z      t       T
0.000  0.000  0.000  373.000
0.000  0.005  0.000  298.000
.....
0.000  0.985  0.000  298.000
0.000  0.995  0.000  298.000
0.000  1.000  0.000  373.000
 
0.005  0.000  0.000  373.000
0.005  0.005  0.000  283.000
....
0.005  0.995  0.000  283.000
0.005  1.000  0.000  373.000
 
0.015  0.000  0.000  373.000
0.015  0.005  0.000  283.000
....
0.015  0.995  0.000  283.000
0.015  1.000  0.000  373.000
 

对于这个温度水平,颜色条显示红色,然而,我的绘图显示为浅绿色,尽管表面达到 正确的高度...这是我的图形:

我在网上做了很多研究,但没有找到任何东西。也许有人可以帮我解决这个问题?

提前致谢。

我想简短的回答(没有示例)是:

set pm3d corners2color max

检查help pm3d