comp-rtt-gnuplot.sh 585 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#! /bin/bash
gnuplot -persist <<EOF
set mouse
#set multiplot
set style data linespoints
set size square
show timestamp
set size ratio 0.75
set title "$1 $2" noenhanced
set xlabel "time (seconds)"
set ylabel "Segments (cwnd, ssthresh)"
set y2label "SRTT in ms"
set y2tics border nomirror
plot "$1" using 1:7 title "snd_cwnd_0" noenhanced w lines, \\
	"$2" using 1:7 title "snd_cwnd_1" noenhanced w lines, \\
	"$1" using 1:(\$10 / 1000) title "srtt_0 in ms" noenhanced axes x1y2 pi 100000 w lp, \\
	"$2" using 1:(\$10 / 1000) title "srtt_1 in ms" noenhanced axes x1y2 pi 100000 w lp
EOF