aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_plots.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2021-07-14 09:55:40 +0200
committerTibor Frank <tifrank@cisco.com>2021-07-14 09:55:40 +0200
commita47cc2dbd97aee82deebec9bd750d661aaca6942 (patch)
tree775abd5fdc1baf69e5a725eae06c8a27af7c112c /resources/tools/presentation/generator_plots.py
parenta841b190f7e448e8c30883e43eb3e6bcecc7788a (diff)
Report: Add rls data
Change-Id: I6a133fd2fe99ec851d2eb0c5b5cc52a5169522c3 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, 5 insertions, 1 deletions
diff --git a/resources/tools/presentation/generator_plots.py b/resources/tools/presentation/generator_plots.py
index 9a1eb9eafc..f03a57f279 100644
--- a/resources/tools/presentation/generator_plots.py
+++ b/resources/tools/presentation/generator_plots.py
@@ -645,9 +645,13 @@ def plot_perf_box_name(plot, input_data):
tst_name = re.sub(REGEX_NIC, u"",
col.lower().replace(u'-ndrpdr', u'').
replace(u'2n1l-', u''))
+ if test_type in (u"VSAP_CPS", u"VSAP_RPS"):
+ data_y = [y if y else None for y in df_y[col]]
+ else:
+ data_y = [y / 1e6 if y else None for y in df_y[col]]
kwargs = dict(
x=[str(i + 1) + u'.'] * len(df_y[col]),
- y=[y / 1e6 if y else None for y in df_y[col]],
+ y=data_y,
name=(
f"{i + 1}. "
f"({nr_of_samples[i]:02d} "