我正在尝试用以下代码绘制带有标签的等高线图。
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"
输出如下所示:
没有标签(第一个splot命令)和没有关键点
使用标签和关键字(第二个splot命令),但使用点。
我的问题:
如果需要,将附加数据文件。
发布于 2019-03-18 02:41:08
pm3d表面可能覆盖了"with 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
https://stackoverflow.com/questions/55204288
复制相似问题