-
Notifications
You must be signed in to change notification settings - Fork 0
/
plot.gp
28 lines (23 loc) · 818 Bytes
/
plot.gp
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
#!/usr/bin/gnuplot
set logscale
set zeroaxis 1
set data style linespoints
set grid
set surface
set xlabel "RTT (ms)"
set ylabel "content size (bytes)"
set zlabel "time (# of RTTs)"
# orange cyan purple
set terminal png xFFFFFF x000000 x80FF00 xFFA500 x00FFFF xA020F0
set output "data/http-web2.lab.png"
set title "HTTP direct"
splot \
"data/http-web2.lab.points" using 1:2:($3/$1) title "handshake",\
"data/http-web2.lab.points" using 1:2:(($3+$4)/$1) title "response",\
"data/http-web2.lab.points" using 1:2:(($3+$4+$5)/$1) title "total"
set output "data/http-web.lab.png"
set title "HTTP tunnel"
splot \
"data/http-web.lab.points" using 1:2:($3/$1) title "handshake",\
"data/http-web.lab.points" using 1:2:(($3+$4)/$1) title "response",\
"data/http-web.lab.points" using 1:2:(($3+$4+$5)/$1) title "total"