From 3948cd6551c630a0c45d1c1ee845d9fd15557610 Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Wed, 20 Dec 2017 20:12:02 +0100 Subject: Made plotting script more resilient to missing data --- scripts/benchmark/plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/benchmark') 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 -- cgit v1.2.3