Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(874)

Unified Diff: webrtc/modules/remote_bitrate_estimator/test/plot_dynamics.py

Issue 1253473004: BWE Simulation Framework: Standard plot logging (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Added missing comma in python script Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698