Taniwiki
3Dのグラフをgnuplotで出力する †
以下のようなファイルをaaa.gpという名前で保存する。
set xlabel "x"
set ylabel "y"
set zlabel "z"
splot 'hogehoge.txt' using 2:3:4 with lines title 'node1',\
'hogehoge.txt' using 2:3:4 with lines title 'node2',\
replot
hogehoge.txtに出力したいグラフの値を保存して、
%gnuplot aaa.gp
とするとgraphが出力される。
usingの2:3:4はhogehoge.txtの2行目3行目4行目をそれぞれx,y,z軸に渡すという意味である。