我正在尝试使用以下代码绘制带有标签的轮廓图。
reset
set terminal qt
set pm3d map
set contour base
set cntrparam levels incremental 0, 10, 100
set cntrlabel onecolor
set palette rgbformulae 33,13,10
# No key appears
# splot 'temperature.dat' with pm3d title "Heated 2D plate"
# Key appears
splot 'temperature.dat' with pm3d, \
'temperature.dat' with labels title "Heated 2D plate"
输出如下所示:
我的问题:
如果需要,将附加数据文件。
答案 0 :(得分:0)
“ with pm3d”图的键可能已被pm3d表面覆盖。您可以使用set key box opaque
将其移到最前面并使其与表面着色区分开。这将在关键点和图形上标记轮廓。删除键中多余的轮廓标签
set pm3d explicit
set key box opaque
splot 'temperature.dat' with pm3d notitle,\
'temperature.dat' with labels title "Heated 2D plate"
我不确定为什么会出现点。尝试重绘该图时,我看不到它们。尝试set pm3d noborder