summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2017-12-20 20:12:02 +0100
committerCedric Nugteren <web@cedricnugteren.nl>2017-12-20 20:12:02 +0100
commit3948cd6551c630a0c45d1c1ee845d9fd15557610 (patch)
treeb512cff43dd9750e7798e2c76cec87a4bf5669fa /scripts
parent0ee81e27b981c10ed0064fe58d458d674b251013 (diff)
Made plotting script more resilient to missing data
Diffstat (limited to 'scripts')
-rw-r--r--scripts/benchmark/plot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/benchmark/plot.py b/scripts/benchmark/plot.py
index 0cb6d8c5..b90a7bf5 100644
--- a/scripts/benchmark/plot.py
+++ b/scripts/benchmark/plot.py
@@ -85,7 +85,7 @@ def plot_graphs(results, file_name, num_rows, num_cols,
x_ticks = [v if not (i % 2) else "" for i, v in enumerate(x_ticks)]
# Sets the y-data
- y_list = [[r[y_key] for r in result] for y_key in y_keys[index]]
+ y_list = [[r[y_key] if y_key in r.keys() else 0 for r in result] for y_key in y_keys[index]]
y_max = max([max(y) for y in y_list])
# Sets the axes