Gnuplot 3d图,更改从点到网格的绘图数据

时间:2013-07-04 10:07:44

标签: gnuplot

在我的previous question中,我收到了修复3d图形标签的帮助。从那以后,我将我的gnuplot脚本更改为:

set isosamples 40
unset key
set label "Monitoring Period (sec)" at 50,-40,0
set xrange [0:60]
set label "Handover Size" at 85,0,0
set yrange [0:40]
set label "Handover Time (sec)" at -10,0,80
set zrange [0:70]
set grid
set term postscript eps enhanced color
set output "LenMonPerHndSizeHndTime.eps"
splot "lenMonPerHndSizeHndTime.dat" using 1:2:3 notitle    

数据与上一个问题保持一致。我的问题是,我希望我的图形呈现网格(或网格,我不知道它是如何调用的)而不是点,就像现在一样。能够 有人教我如何使用网格而不是点来绘制数据?

谢谢,

尼克

1 个答案:

答案 0 :(得分:0)

没关系,我用以下Gnuplot脚本解决了我的问题:

set label "Monitoring Period (sec)" at 50,-40,0
set xrange [0:60]
set label "Handover Size" at 85,0,0
set yrange [0:40]
set label "Handover Time (sec)" at -10,0,80
set zrange [0:70]
set dgrid3d 30,30
set hidden3d
set term postscript eps enhanced
set output "lenMonPerHndSizeHndTime.eps"
splot "lenMonPerHndSizeHndTime.dat" using 1:2:3 with lines