我正在尝试从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
,我会在第一个文件中看到不需要的行。有解决方案吗?
答案 0 :(得分:1)
如果您使用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