Updating coloring for graphs.
[pingpong.git] / plot_scripts / plot_ts_graph_smartthings-mp-sensor_combined
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 pngcairo 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 "Packet Size (bytes)"
20 set xdata time
21 set timefmt "%H:%M:%S"
22 set xrange [:]
23 set yrange [0:]
24
25 # ***************** #
26 # PER DEVICE SETUP  #
27 # ***************** #
28 # SmartThings Multipurpose Sensor local
29 # wlan1 / eth0 / eth1
30 set output './result/smartthings-mp-sensor_switch_wlan1_timestamp_local_incoming_combined.png'
31 set title "SmartThings Multipurpose Sensor Incoming Local Traffic (wlan1/eth0/eth1)"
32 plot "./result/smartthings-mp-sensor_switch_eth0_local_incoming.dat" using 1:2 with lines title "eth0", "./result/smartthings-mp-sensor_switch_eth1_local_incoming.dat" using 1:2 with lines title "eth1", "./result/smartthings-mp-sensor_phone_wlan1_local_outgoing.dat" using 1:2 with lines title "wlan1-phone-outgoing", "./result/smartthings-mp-sensor_phone_wlan1_local_incoming.dat" using 1:2 with lines title "wlan1-phone-incoming"
33 set output './result/smartthings-mp-sensor_switch_wlan1_timestamp_local_outgoing_combined.png'
34 set title "SmartThings Multipurpose Sensor Outgoing Local Traffic (wlan1/eth0/eth1)"
35 plot "./result/smartthings-mp-sensor_switch_wlan1_local_outgoing.dat" using 1:2 with lines title "wlan1", "./result/smartthings-mp-sensor_switch_eth0_local_outgoing.dat" using 1:2 with lines title "eth0", "./result/smartthings-mp-sensor_switch_eth1_local_outgoing.dat" using 1:2 with lines title "eth1", "./result/smartthings-mp-sensor_phone_wlan1_local_outgoing.dat" using 1:2 with lines title "wlan1-phone-outgoing", "./result/smartthings-mp-sensor_phone_wlan1_local_incoming.dat" using 1:2 with lines title "wlan1-phone-incoming"
36
37 # SmartThings Multipurpose Sensor remote
38 # eth0 / eth1
39 set output './result/smartthings-mp-sensor_switch_wlan1_timestamp_remote_incoming_combined.png'
40 set title "SmartThings Multipurpose Sensor Incoming Remote Traffic (eth0/eth1)"
41 plot "./result/smartthings-mp-sensor_switch_eth0_remote_incoming.dat" using 1:2 with lines title "eth0", "./result/smartthings-mp-sensor_switch_eth1_remote_incoming.dat" using 1:2 with lines title "eth1"
42 set output './result/smartthings-mp-sensor_switch_wlan1_timestamp_remote_outgoing_combined.png'
43 set title "SmartThings Multipurpose Sensor Outgoing Remote Traffic (eth0/eth1)"
44 plot "./result/smartthings-mp-sensor_switch_eth0_remote_outgoing.dat" using 1:2 with lines title "eth0", "./result/smartthings-mp-sensor_switch_eth1_remote_outgoing.dat" using 1:2 with lines title "eth1"