OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 # Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 3 # Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
4 # | 4 # |
5 # Use of this source code is governed by a BSD-style license | 5 # Use of this source code is governed by a BSD-style license |
6 # that can be found in the LICENSE file in the root of the source | 6 # that can be found in the LICENSE file in the root of the source |
7 # tree. An additional intellectual property rights grant can be found | 7 # tree. An additional intellectual property rights grant can be found |
8 # in the file PATENTS. All contributing project authors may | 8 # in the file PATENTS. All contributing project authors may |
9 # be found in the AUTHORS file in the root of the source tree. | 9 # be found in the AUTHORS file in the root of the source tree. |
10 | 10 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 echo "set boxwidth $box_width" | 104 echo "set boxwidth $box_width" |
105 | 105 |
106 # Plots can be directly exported to image files. | 106 # Plots can be directly exported to image files. |
107 file_name=$(echo "$labels" | grep "^LABEL.$figure" | cut -f 5 | head -n 1) | 107 file_name=$(echo "$labels" | grep "^LABEL.$figure" | cut -f 5 | head -n 1) |
108 | 108 |
109 y_max=0 # Used to scale the plot properly. | 109 y_max=0 # Used to scale the plot properly. |
110 | 110 |
111 # Scale all latency plots with the same vertical scale. | 111 # Scale all latency plots with the same vertical scale. |
112 delay_figure=5 | 112 delay_figure=5 |
113 if (( $figure==$delay_figure )) ; then | 113 if (( $figure==$delay_figure )) ; then |
114 y_max=250 | 114 y_max=400 |
115 else # Take y_max = 1.1 * highest plot value. | 115 else # Take y_max = 1.1 * highest plot value. |
116 | 116 |
117 # Since only the optimal bitrate for the first flow is being ploted, | 117 # Since only the optimal bitrate for the first flow is being ploted, |
118 # consider only this one for scalling purposes. | 118 # consider only this one for scalling purposes. |
119 data_sets=$(echo "$bars" | grep "LIMITERRORBAR.$figure" | cut -f 3 | \ | 119 data_sets=$(echo "$bars" | grep "LIMITERRORBAR.$figure" | cut -f 3 | \ |
120 sed 's/_/\t/g' | cut -f 1 | sort | uniq) | 120 sed 's/_/\t/g' | cut -f 1 | sort | uniq) |
121 | 121 |
122 if (( ${#data_sets[@]} > "0" )); then | 122 if (( ${#data_sets[@]} > "0" )); then |
123 for set in $data_sets ; do | 123 for set in $data_sets ; do |
124 y=$(echo "$bars" | grep "LIMITERRORBAR.$figure.$set" | cut -f 8 | \ | 124 y=$(echo "$bars" | grep "LIMITERRORBAR.$figure.$set" | cut -f 8 | \ |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 title '$retouched_title'" | 277 title '$retouched_title'" |
278 done | 278 done |
279 | 279 |
280 fi | 280 fi |
281 | 281 |
282 echo "unset multiplot" | 282 echo "unset multiplot" |
283 done | 283 done |
284 } | 284 } |
285 | 285 |
286 gen_gnuplot_bar_input | gnuplot -persist | 286 gen_gnuplot_bar_input | gnuplot -persist |
OLD | NEW |