我正试图根据3D数据绘制轮廓,其中轮廓将仅在基础上
set contour base
set cntrparam bspline
unset surface
set view map
splot 'file1.dat' u ($1):($2):($3) w l ls 1 notitle,
'file2.dat' u ($2):($3):(0) w lp ls 2
第二个文件只是我想在X-Y平面上绘制的一条线。但是,由于曲面未设置,因此不会显示第二个绘图。如果我删除unset surface
,我会从第一个文件中看到不需要的行。有解决办法吗?
如果您将nosurface
用于第一个图,将nocontour
用于第二个图,它可能会起作用(我没有数据可供测试):
set contour base
set cntrparam bspline
set view map
splot 'file1.dat' u 1:2:3 ls 1 w l nosurface notitle,
'file2.dat' u 2:3:(0) w lp ls 2 nocontour