2016-04-16 8 views
2

複数のTCP輻輳制御アルゴリズムを分析しようとしています。複数のグラフをプロットしようとしていますが、1つの比較グラフを作成できません。gnuplotを使用して複数のグラフをプロットするためのシェルスクリプト

は、これは私のスクリプトコードです:

gnuplot -persist <<"EOF" 
set xlabel "time (seconds)" 
set ylabel "Segments (cwnd, ssthresh)" 
plot "./cubic.out" using 1:7 title "snd_cwnd cubic", \ 
"./cubic.out" using 1:($8>=2147483647 ? 0 : $8) title "snd_ssthresh cubic",/ 
    "./reno.out" using 1:7 title "snd_cwnd reno", \ 
    "./reno.out" using 1:($8>=2147483647 ? 0 : $8) title "snd_ssthresh reno" 
    ,/ 
EOF 

しかし、このスクリプトは、ミゲルのアドバイスに続いて二つのサブセクション(両方が原点に発信されていない)

おかげ

+2

とサンプルデータを – bibi

+2

スラッシュでコードが正しくない可能性があります。継続改行にはバックスラッシュが必要です。 – Miguel

答えて

1

にグラフを分割し、ここにあります何を試してみるべきですか(覚えておいてください)。

gnuplot -persist <<"EOF" 
set xlabel "time (seconds)" 
set ylabel "Segments (cwnd, ssthresh)" 
plot "./cubic.out" using 1:7 title "snd_cwnd cubic", \ 
"./cubic.out" using 1:($8>=2147483647 ? 0 : $8) title "snd_ssthresh cubic", \ 
    "./reno.out" using 1:7 title "snd_cwnd reno", \ 
    "./reno.out" using 1:($8>=2147483647 ? 0 : $8) title "snd_ssthresh reno" , \ 
EOF 
関連する問題