| 1 |
#set terminal png size 1280,1024 enhanced font "Helvetica,20" |
| 2 |
#set output 'output.png' |
| 3 |
#set terminal qt |
| 4 |
#set output |
| 5 |
|
| 6 |
set datafile separator "\t" |
| 7 |
set datafile missing '0' |
| 8 |
|
| 9 |
#set multiplot |
| 10 |
|
| 11 |
# key/legend |
| 12 |
set key top right |
| 13 |
set key box |
| 14 |
set key left bottom |
| 15 |
set key bmargin |
| 16 |
|
| 17 |
|
| 18 |
set title 'Jitter Graph' |
| 19 |
set xlabel 'Timestamp' |
| 20 |
set ylabel 'trans / jitter / delay / buffer size [ms]' |
| 21 |
set ytics nomirror |
| 22 |
|
| 23 |
#set y2label 'delay [ms]' |
| 24 |
#set y2tics nomirror |
| 25 |
|
| 26 |
# For pcap based input, 'pre.delay' makes no sense (it's 0) as we can't know tx_delay |
| 27 |
pcap = 1 |
| 28 |
if (pcap) { |
| 29 |
plot \ |
| 30 |
'/tmp/bla' using 3:5 with linespoints title 'pre.trans' axes x1y1, \ |
| 31 |
'/tmp/bla' using 4:6 with linespoints title 'post.trans' axes x1y1, \ |
| 32 |
'/tmp/bla' using 3:7 with linespoints title 'pre.jitter' axes x1y1, \ |
| 33 |
'/tmp/bla' using 4:8 with linespoints title 'post.jitter' axes x1y1, \ |
| 34 |
'/tmp/bla' using 3:9 with linespoints title 'pre.dropped' axes x1y1, \ |
| 35 |
'/tmp/bla' using 3:10 with linespoints title 'pre.buffer' axes x1y1, \ |
| 36 |
'/tmp/bla' using 3:11 with linespoints title 'pre.skew' axes x1y1, \ |
| 37 |
'/tmp/bla' using 4:((column(4)-column(2))) with linespoints title 'post.delay' axes x1y1 |
| 38 |
|
| 39 |
} else { |
| 40 |
plot \ |
| 41 |
'/tmp/bla' using 3:5 with linespoints title 'pre.trans' axes x1y1, \ |
| 42 |
'/tmp/bla' using 4:6 with linespoints title 'post.trans' axes x1y1, \ |
| 43 |
'/tmp/bla' using 3:7 with linespoints title 'pre.jitter' axes x1y1, \ |
| 44 |
'/tmp/bla' using 4:8 with linespoints title 'post.jitter' axes x1y1, \ |
| 45 |
'/tmp/bla' using 3:9 with linespoints title 'pre.dropped' axes x1y1, \ |
| 46 |
'/tmp/bla' using 3:10 with linespoints title 'pre.buffer' axes x1y1, \ |
| 47 |
'/tmp/bla' using 3:11 with linespoints title 'pre.skew' axes x1y1, \ |
| 48 |
'/tmp/bla' using 3:((column(3)-column(2))) with linespoints title 'pre.delay' axes x1y1, \ |
| 49 |
'/tmp/bla' using 4:((column(4)-column(2))) with linespoints title 'post.delay' axes x1y1 |
| 50 |
} |
| 51 |
pause mouse close; exit |