aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_plots.py
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 14:55:19 +0200
commitedc3b6e9a4668deb838c2f63d80bc0ebfe80324d (patch)
treec50abd3dc6c7eccd8a756e0c79235d61339ada22 /resources/tools/presentation/generator_plots.py
parentd9bc2574c7b51e1f60fb061e2d57c00712fc2943 (diff)
Report: NFV Graphs
Change-Id: I62a6e2f337d198cd2c4da7ba0bd1b1b9752310ad Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/generator_plots.py')
-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(