| | 25 | |
| | 26 | gnuplot -persist << EOF |
| | 27 | set terminal postscript eps enhanced color |
| | 28 | set output "seqno.eps" |
| | 29 | |
| | 30 | set title "time-seqno plot" |
| | 31 | set xlabel "time (sec)" |
| | 32 | set ylabel "seqno" |
| | 33 | |
| | 34 | set mxtics 2 |
| | 35 | set mytics 2 |
| | 36 | |
| | 37 | set xrange [$1:$2] |
| | 38 | set yrange [$3:$4] |
| | 39 | |
| | 40 | plot \ |
| | 41 | "encs.xg" with impulses title "start encoding", \ |
| | 42 | "ence.xg" with impulses title "end encoding" lc 4 lt 1, \ |
| | 43 | "inXR.xg" with impulses title "ackvec arrival" lt 1 lc 2, \ |
| | 44 | "seqno.xg" pt 4 lc 3 title "packet" |
| | 45 | |
| | 46 | EOF |
| | 47 | |
| | 48 | gnuplot -persist << EOF |
| | 49 | set terminal postscript eps enhanced color |
| | 50 | set output "enct.eps" |
| | 51 | |
| | 52 | set title "encoding time" |
| | 53 | set xlabel "num encoding" |
| | 54 | set ylabel "time (sec)" |
| | 55 | |
| | 56 | set yrange [0:0.005] |
| | 57 | set mxtics 2 |
| | 58 | set mytics 2 |
| | 59 | |
| | 60 | plot \ |
| | 61 | "enct.xg" with lines title "encoding time", \ |
| | 62 | "grt.xg" with lines lt 1 lc 3 title "grabbing time" |
| | 63 | |
| | 64 | EOF |