aboutsummaryrefslogtreecommitdiffstats
path: root/tests/jibuf/jitter.plt
blob: fb606cfcfe78cdd5d5a34c959a365277bf155e64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#set terminal png size 1280,1024 enhanced font "Helvetica,20"
#set output 'output.png'
#set terminal qt
#set output

set datafile separator "\t"
set datafile missing '0'

#set multiplot

# key/legend
set key top right
set key box
set key left bottom
set key bmargin


set title 'Jitter Graph'
set xlabel 'Timestamp'
set ylabel 'trans / jitter / delay / buffer size [ms]'
set ytics nomirror

#set y2label 'delay [ms]'
#set y2tics nomirror

# For pcap based input, 'pre.delay' makes no sense (it's 0) as we can't know tx_delay
pcap = 1
if (pcap) {
        plot \
        '/tmp/bla' using 3:5 with linespoints title 'pre.trans' axes x1y1, \
        '/tmp/bla' using 4:6 with linespoints title 'post.trans' axes x1y1, \
        '/tmp/bla' using 3:7 with linespoints title 'pre.jitter' axes x1y1, \
        '/tmp/bla' using 4:8 with linespoints title 'post.jitter' axes x1y1, \
        '/tmp/bla' using 3:9 with linespoints title 'pre.dropped' axes x1y1, \
        '/tmp/bla' using 3:10 with linespoints title 'pre.buffer' axes x1y1, \
        '/tmp/bla' using 3:11 with linespoints title 'pre.skew' axes x1y1, \
        '/tmp/bla' using 4:((column(4)-column(2))) with linespoints title 'post.delay' axes x1y1

} else {
        plot \
        '/tmp/bla' using 3:5 with linespoints title 'pre.trans' axes x1y1, \
        '/tmp/bla' using 4:6 with linespoints title 'post.trans' axes x1y1, \
        '/tmp/bla' using 3:7 with linespoints title 'pre.jitter' axes x1y1, \
        '/tmp/bla' using 4:8 with linespoints title 'post.jitter' axes x1y1, \
        '/tmp/bla' using 3:9 with linespoints title 'pre.dropped' axes x1y1, \
        '/tmp/bla' using 3:10 with linespoints title 'pre.buffer' axes x1y1, \
        '/tmp/bla' using 3:11 with linespoints title 'pre.skew' axes x1y1, \
        '/tmp/bla' using 3:((column(3)-column(2))) with linespoints title 'pre.delay' axes x1y1, \
        '/tmp/bla' using 4:((column(4)-column(2))) with linespoints title 'post.delay' axes x1y1
}
pause mouse close; exit