Rename script that performs detection on all smarthome traces.
[pingpong.git] / plot_scripts / plot_ts_graph_wemo_labeled
1 # Script to plot time series graphs for network traffic analysis
2 #
3 # by Rahmadi Trimananda (rahmadi.trimananda@uci.edu)
4 # Programming Language Research Group @ University of California, Irvine
5 # Winter 2018
6
7 # ************ #
8 # BASIC SETUP  #
9 # ************ #
10 set terminal pdfcairo enhanced font 'Verdana,10'
11 set autoscale
12 set key
13 unset log
14 unset label
15 set xtics 50
16 set xtics rotate by 60 right
17 set ytics auto
18 set xlabel "Packet Timestamp (hh:mm:ss)"
19 set ylabel "Traffic Volume (bytes)"
20 set xdata time
21 set timefmt "%H:%M:%S"
22 set xrange [:]
23 set yrange [0:]
24
25 # ************ #
26 # ON/OFF LABEL #
27 # ************ #
28 set label "1-ON" at "11:10:05", 50000 tc rgb "blue"
29 set label "1-OFF" at "11:11:08", 50000 tc rgb "red"
30 set label "2-ON" at "11:12:10", 50000 tc rgb "blue"
31 set label "2-OFF" at "11:13:12", 50000 tc rgb "red"
32 set label "3-ON" at "11:14:14", 50000 tc rgb "blue"
33 set label "3-OFF" at "11:15:17", 50000 tc rgb "red"
34
35 # ***************** #
36 # PER DEVICE SETUP  #
37 # ***************** #
38 # WeMo switch local
39 # wlan1
40 set output './result/wemo_switch_wlan1_timestamp_local_incoming_outgoing.pdf'
41 set title "WeMo Switch Incoming/Outgoing Local Traffic (wlan1)"
42 plot "./result/wemo_switch_wlan1_local_incoming.dat" using 1:2 with lines lc 8 dt 4 title "Incoming", "./result/wemo_switch_wlan1_local_outgoing.dat" using 1:2 with lines lc 6 title "Outgoing"
43
44 # ************ #
45 # ON/OFF LABEL #
46 # ************ #
47 set label "1-ON" at "11:20:49", 50000 tc rgb "blue"
48 set label "1-OFF" at "11:21:49", 50000 tc rgb "red"
49 set label "2-ON" at "11:22:50", 50000 tc rgb "blue"
50 set label "2-OFF" at "11:23:52", 50000 tc rgb "red"
51 set label "3-ON" at "11:24:54", 5000 tc rgb "orange"
52 set label "3-OFF" at "11:26:55", 50000 tc rgb "blue"
53
54 # ***************** #
55 # PER DEVICE SETUP  #
56 # ***************** #
57 # WeMo switch remote
58 # wlan1
59 set output './result/wemo_switch_wlan1_timestamp_remote_incoming_outgoing.pdf'
60 set title "WeMo Switch Incoming/Outgoing Remote Traffic (wlan1)"
61 plot "./result/wemo_switch_wlan1_remote_incoming.dat" using 1:2 with lines lc 8 dt 4 title "Incoming", "./result/wemo_switch_wlan1_remote_outgoing.dat" using 1:2 with lines lc 6 title "Outgoing"
62
63