Completing flow for time series graph generation
[pingpong.git] / plot_scripts / plot_graph
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 # Fall 2017
6
7 # ************ #
8 # BASIC SETUP  #
9 # ************ #
10 #set terminal postscript landscape "Arial, 18"
11 #set terminal postscript eps font 'Helvetica,20' enhanced color 
12 set terminal pngcairo enhanced font 'Verdana,10'
13 set autoscale
14 unset key
15 unset log
16 unset label
17 set xtics 600
18 set ytics auto
19 set xlabel "Packet Timestamp (hh:mm:ss)"
20 set ylabel "Packet Frequency (pps)"
21 set xdata time
22 set timefmt "%H:%M:%S"
23 #set xrange ["06:00:00":"10:00:00"]
24 #set yrange [0:200]
25 set xrange [:]
26 set yrange [0:]
27
28 # ***************** #
29 # PER DEVICE SETUP  #
30 # ***************** #
31 # WeMo switch
32 #set output 'wemo_switch.ps'
33 #set output 'wemo_switch.eps'
34 set output '../result/wemo_switch.png'
35 set title "WeMo Switch Time Series Plot of Packets"
36 plot "../result/wemo_switch.dat" using 1:2 with lines
37
38 #set output 'wemo_switch2.ps'
39 #plot "wemo_switch.dat" using 1:2
40
41 # WeMo switch
42 #set output '../result/wemo_switch.ps'
43 #set output '../result/wemo_switch.eps'
44 set output '../result/wemo_switch.png'
45 set title "WeMo Switch"
46 plot "../result/wemo_switch.dat" using 1:2 with lines
47
48 # WeMo Insight
49 #set output '../result/wemo_insight.eps'
50 set output '../result/wemo_insight.png'
51 set title "WeMo Insight"
52 plot "../result/wemo_insight.dat" using 1:2 with lines
53
54 # TP-Link switch
55 #set output '../result/tplink_switch.eps'
56 set output '../result/tplink_switch.png'
57 set title "TP-Link Switch"
58 plot "../result/tplink_switch.dat" using 1:2 with lines
59
60 # D-Link switch
61 #set output '../result/dlink_switch.eps'
62 set output '../result/dlink_switch.png'
63 set title "D-Link Switch"
64 plot "../result/dlink_switch.dat" using 1:2 with lines
65
66 # Amcrest camera
67 #set output '../result/amcrest_camera.eps'
68 set output '../result/amcrest_camera.png'
69 set title "Amcrest Camera"
70 plot "../result/amcrest_camera.dat" using 1:2 with lines
71
72 # Netgear Arlo camera
73 #set output '../result/netgear_arlo_camera.eps'
74 set output '../result/netgear_arlo_camera.png'
75 set title "Netgear Arlo Camera"
76 plot "../result/netgear_arlo_camera.dat" using 1:2 with lines
77
78 # LiFX light bulb
79 #set output '../result/lifx_lightbulb_1.eps'
80 set output '../result/lifx_lightbulb_1.png'
81 set title "LiFX Light Bulb #1"
82 plot "../result/lifx_lightbulb_1.dat" using 1:2 with lines
83
84 # LiFX light bulb
85 #set output '../result/lifx_lightbulb_2.eps'
86 set output '../result/lifx_lightbulb_2.png'
87 set title "LiFX Light Bulb #2"
88 plot "../result/lifx_lightbulb_2.dat" using 1:2 with lines
89
90 # Philips Hue
91 #set output '../result/philips_hue.eps'
92 set output '../result/philips_hue.png'
93 set title "Philips Hue"
94 plot "../result/philips_hue.dat" using 1:2 with lines
95
96 # TP-Link Light Bulb
97 #set output '../result/tplink_lightbulb.eps'
98 set output '../result/tplink_lightbulb.png'
99 set title "TP-Link Light Bulb"
100 plot "../result/tplink_lightbulb.dat" using 1:2 with lines
101
102 # Nxeco sprinkler
103 #set output '../result/nxeco_sprinkler.eps'
104 set output '../result/nxeco_sprinkler.png'
105 set title "Nxeco Sprinkler"
106 plot "../result/nxeco_sprinkler.dat" using 1:2 with lines
107
108 # Blossom sprinkler
109 #set output '../result/blossom_sprinkler.eps'
110 set output '../result/blossom_sprinkler.png'
111 set title "Blossom Sprinkler"
112 plot "../result/blossom_sprinkler.dat" using 1:2 with lines
113
114 # D-Link alarm
115 #set output '../result/dlink_alarm.eps'
116 set output '../result/dlink_alarm.png'
117 set title "D-Link Alarm"
118 plot "../result/dlink_alarm.dat" using 1:2 with lines
119
120 # D-Link alarm
121 #set output '../result/dlink_alarm.eps'
122 set output '../result/dlink_alarm.png'
123 set title "D-Link Alarm"
124 plot "../result/dlink_alarm.dat" using 1:2 with lines
125
126 # D-Link motion sensor
127 #set output '../result/dlink_motion_sensor.eps'
128 set output '../result/dlink_motion_sensor.png'
129 set title "D-Link Motion Sensor"
130 plot "../result/dlink_motion_sensor.dat" using 1:2 with lines
131
132 # Nest Thermostat
133 #set output '../result/nest_thermostat.eps'
134 set output '../result/nest_thermostat.png'
135 set title "Nest Thermostat"
136 plot "../result/nest_thermostat.dat" using 1:2 with lines
137
138 # Amazon Echo Dot
139 #set output '../result/amazon_echo_dot.eps'
140 set output '../result/amazon_echo_dot.png'
141 set title "Amazon Ech Odit"
142 plot "../result/amazon_echo_dot.dat" using 1:2 with lines
143
144 # SmartThings hub
145 #set output '../result/smartthings_hub.eps'
146 set output '../result/smartthings_hub.png'
147 set title "SmartThings Hub"
148 plot "../result/smartthings_hub.dat" using 1:2 with lines
149
150