From 8939cbac9c5ec3a58a827dd7f364b965a8bb9d3c 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 (cherry picked from commit edc3b6e9a4668deb838c2f63d80bc0ebfe80324d) --- resources/tools/presentation/generator_plots.py | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) 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