4 $multiple_graphs=1 if ($#ARGV >= 0 && $ARGV[0] eq "-m");
8 foreach $Q (("VO", "VI", "BE")) {
10 $base_name="${Q}_packet_size_";
11 $graph_data_name = "${base_name}graph";
13 open G, ">$graph_data_name" || die "error opening $graph_data_name";
14 foreach $f (glob "${base_name}*.dat") {
18 ($a) = /([0-9]*) bytes/;
19 ($b)=/real: +([0-9.]+) kbps/;
22 ($c) = /real: +([0-9.]+) kbps/;
24 ($c) = /real: +([0-9.]+) bps/;
35 if ($multiple_graphs) {
36 $pdf = "packet_sizes_sat.pdf";
38 $pdf = "packet_sizes_sat_comp.pdf";
40 open GNUPLOT, "|gnuplot|ps2pdf - $pdf";
41 print GNUPLOT "set term postscript color landscape\n";
43 open GNUPLOT, "|gnuplot -persist";
48 set key right bottom nobox
49 set style data linespoints
53 if ($multiple_graphs) {
54 foreach $Q (("VO", "VI", "BE")) {
55 $base_name="${Q}_packet_size_";
56 $graph_data_name = "${base_name}graph";
58 print GNUPLOT qq/set title "Influence of AC_$Q packet sizes to saturation bandwidth of AC_BE"\n/;
59 print GNUPLOT qq/set xlabel "AC_$Q packet sizes [bytes]"\n/;
60 print GNUPLOT qq/set ylabel "Bandwidth [kbps]"\n/;
61 print GNUPLOT qq/plot /;
63 print GNUPLOT qq/"$graph_data_name" using 1:3 title "AC_BE", /;
65 print GNUPLOT qq/"$graph_data_name" using 1:2 title "AC_${Q}"\n/;
68 print GNUPLOT qq/set title "Influence of different packet sizes to saturation bandwidth of AC_BE"\n/;
69 print GNUPLOT qq/set xlabel "Packet sizes [bytes]"\n/;
70 print GNUPLOT qq/set ylabel "AC_BE bandwidth [kbps]"\n/;
72 foreach $Q (("VO", "VI", "BE")) {
73 $base_name="${Q}_packet_size_";
74 $graph_data_name = "${base_name}graph";
76 push @plots, qq/"$graph_data_name" using 1:3 title "packet size of AC_${Q} was being changed"/;
78 print GNUPLOT "plot ", join(", ", @plots), "\n";