X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_plots.py;h=f03a57f2794f2c6f291fce0e7fe75ab628f08b38;hb=616e6aad61c5e8c62bf5665e78ff36542c7759fc;hp=9a1eb9eafcfcf0c5ee8e80a6a02118d3a330dad3;hpb=ca78aa0bec91eef53bbe44e60cb4b82e6fe122e7;p=csit.git 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} "