Deleting unwanted scripts and checking in relevant ones.
[pingpong.git] / plot_scripts / plot_ps_graph
1 # Script to plot packet size 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 Size (bytes)"
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 '../result_ps/wemo_switch_incoming.ps'
33 #set output '../result_ps/wemo_switch_incoming.eps'
34 set output '../result_ps/wemo_switch_packet_size_incoming.png'
35 set title "WeMo Switch Packet Size Incoming Traffic"
36 plot "../result_ps/wemo_switch_incoming.dat" using 1:2
37 set output '../result_ps/wemo_switch_packet_size_outgoing.png'
38 set title "WeMo Switch Packet Size Outgoing Traffic"
39 plot "../result_ps/wemo_switch_outgoing.dat" using 1:2
40