aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_plots.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2021-06-29 13:58:59 +0200
committerTibor Frank <tifrank@cisco.com>2021-06-30 09:48:20 +0200
commit6c8ba1c706a4e9e467ab5e2a4b676b9016f9e610 (patch)
tree183b859fcd22c82d5aa707983daf8c8c756fe819 /resources/tools/presentation/generator_plots.py
parentf975cf2f1e2f5baef0ab0da75a53948d025562a2 (diff)
Report: Implement changes from job-specs
Change-Id: Id9497ae02eb47fed40b9e4c33b98a81c34b71964 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.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/tools/presentation/generator_plots.py b/resources/tools/presentation/generator_plots.py
index 8161a5a566..e674a3e5c8 100644
--- a/resources/tools/presentation/generator_plots.py
+++ b/resources/tools/presentation/generator_plots.py
@@ -664,7 +664,7 @@ def plot_perf_box_name(plot, input_data):
try:
val_max = max(df_y[col])
if val_max:
- y_max.append(int(val_max / 1e6) + 2)
+ y_max.append(int(val_max / 1e6))
except (ValueError, TypeError) as err:
logging.error(repr(err))
continue
@@ -683,8 +683,8 @@ def plot_perf_box_name(plot, input_data):
layout[u"yaxis"][u"title"] = u"<b>Connection Rate [Mrps]</b>"
else:
layout[u"title"] = f"<b>Throughput:</b> {layout[u'title']}"
- if y_max:
- layout[u"yaxis"][u"range"] = [0, max(y_max)]
+ if y_max and max(y_max) > 1:
+ layout[u"yaxis"][u"range"] = [0, max(y_max) + 2]
plpl = plgo.Figure(data=traces, layout=layout)
# Export Plot