aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2019-05-07 14:55:19 +0200
committerTibor Frank <tifrank@cisco.com>2019-05-07 18:03:16 +0000
commit8939cbac9c5ec3a58a827dd7f364b965a8bb9d3c (patch)
tree4fc0be6fec5e31a520fd484a9ce3632964b564f2
parent338a1781d45e0e06018d2588d03643ed2277bf13 (diff)
Report: NFV Graphs
Change-Id: I62a6e2f337d198cd2c4da7ba0bd1b1b9752310ad Signed-off-by: Tibor Frank <tifrank@cisco.com> (cherry picked from commit edc3b6e9a4668deb838c2f63d80bc0ebfe80324d)
-rw-r--r--resources/tools/presentation/generator_plots.py18
1 files 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(