From edc3b6e9a4668deb838c2f63d80bc0ebfe80324d Mon Sep 17 00:00:00 2001 From: Tibor Frank Date: Tue, 7 May 2019 14:55:19 +0200 Subject: Report: NFV Graphs Change-Id: I62a6e2f337d198cd2c4da7ba0bd1b1b9752310ad Signed-off-by: Tibor Frank --- resources/tools/presentation/generator_plots.py | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'resources/tools/presentation') diff --git a/resources/tools/presentation/generator_plots.py b/resources/tools/presentation/generator_plots.py index cc9a774576..5f2de94872 100644 --- a/resources/tools/presentation/generator_plots.py +++ b/resources/tools/presentation/generator_plots.py @@ -1528,13 +1528,25 @@ def plot_service_density_heatmap_compare(plot, input_data): showarrow=False ) - point["text"] = "" if data_r[c][n] is None else str(data_r[c][n]) + try: + data_point = str(data_r[c][n]) + except KeyError: + data_point = None + point["text"] = "" if data_point is None else data_point annotations_r.append(deepcopy(point)) - point["text"] = "" if data_c[c][n] is None else str(data_c[c][n]) + try: + data_point = str(data_c[c][n]) + except KeyError: + data_point = None + point["text"] = "" if data_point is None else data_point annotations_c.append(deepcopy(point)) - point["text"] = "" if diff[c][n] is None else str(diff[c][n]) + try: + data_point = str(diff[c][n]) + except KeyError: + data_point = None + point["text"] = "" if data_point is None else data_point annotations_diff.append(deepcopy(point)) hover_line.append(text.format( -- cgit 1.2.3-korg