2014-09-30 94 views
1

我想要繪製從三維數據,其中輪廓將僅在基礎在gnuplot的繪製一個輪廓和線條一起

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 

第二個文件是隻是我想繪製線條輪廓在XY平面上。但是,由於表面未設置,第二個圖不顯示。如果我刪除unset surface,我會看到第一個文件中不需要的行。有沒有解決方案?

回答

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