Index: webrtc/modules/remote_bitrate_estimator/test/plot_dynamics.py |
diff --git a/webrtc/modules/remote_bitrate_estimator/test/plot_dynamics.py b/webrtc/modules/remote_bitrate_estimator/test/plot_dynamics.py |
index f825be41fdc90665e8928b09bd1902894182f83a..4fb281c3cc188164e377a531ed95086872321395 100644 |
--- a/webrtc/modules/remote_bitrate_estimator/test/plot_dynamics.py |
+++ b/webrtc/modules/remote_bitrate_estimator/test/plot_dynamics.py |
@@ -48,7 +48,7 @@ class Variable: |
def addSample(self, line): |
- groups = re.search(r'/\d_(\w+)#\d@(\w*)', line) |
+ groups = re.search(r'/\d_(\w+)#\w@(\S*)', line) |
var_name = groups.group(1) |
alg_name = groups.group(2) |
@@ -59,6 +59,7 @@ class Variable: |
self._samples[alg_name][var_name] = [] |
sample = re.search(r'(\d+\.\d+)\t([-]?\d+\.\d+)', line) |
+ |
s = (sample.group(1),sample.group(2)) |
self._samples[alg_name][var_name].append(s) |
@@ -98,7 +99,12 @@ def plotVar(v, ax, show_legend, show_x_label): |
'TCP9':'#AAAAAA', |
'TCP10':'#AAAAAA',} |
- plt.setp(line, color=colormap[alg + str(i)]) |
+ key = alg + str(i) |
+ if key in colormap: |
+ plt.setp(line, color=colormap[key]) |
+ else: |
+ plt.setp(line, color='#654321') |
+ |
if alg.startswith('Available'): |
plt.setp(line, linestyle='--') |
plt.grid(True) |