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軸に渡すという意味である。


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2012-03-10 (土) 18:37:41 (4422d)