gnuplotを使ってns2のトレースファイルを解析した.
ほっとくと忘れそうなので,ここにメモっとく.
# gnuplotを起動
$ gnuplot# gnuplotでプロットする.
# とりあえずプロットしてみる
gnuplot> plot “ex1.tcp” using 2:18 with line# 複数データをプロット.
gnuplot> plot “ex1.tcp” using 2:18 title “cwnd” with lines,\
> “ex1.tcp” using 2:20 title “ssthresh” with lines# 左右両方のY軸を使う
gnuplot> set ytics nomirror
gnuplot> set y2ticsgnuplot> plot “ex1.tcp” using 2:18 title “cwnd” with line,\
> “ex1.tcp” using 2:20 title “ssthresh” with lines, \
> “ex1.tcp” using 2:16 title “seqno” with line axis x1y2# 図の位置(マージン)を調整
# 現在のマージンを確認
gnuplot> show marginlmargin is computed automatically
bmargin is computed automatically
rmargin is computed automatically
tmargin is computed automatically# マージンを変更
gnuplot> set lmargin 10
gnuplot> set bmargin 3
gnuplot> set rmargin 2
gnuplot> set tmargin 1
プロットしたものを画像(eps)として保存するやり方も,そのうちまた書くつもり.