X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_plots.py;h=c9018f4429a293d57b220214e6fc6b4a29d85bcd;hp=db130fa9b79a14889692782e58ba58be1201228b;hb=d6615bce0d5ac4cb88bbeec584fa7094a6db2c06;hpb=d4f12e6931c7fdf84043d8fb2f71e2f38965f26b diff --git a/resources/tools/presentation/generator_plots.py b/resources/tools/presentation/generator_plots.py index db130fa9b7..c9018f4429 100644 --- a/resources/tools/presentation/generator_plots.py +++ b/resources/tools/presentation/generator_plots.py @@ -488,19 +488,21 @@ def plot_nf_reconf_box_name(plot, input_data): df_y = pd.DataFrame(y_vals) df_y.head() for i, col in enumerate(df_y.columns): + tst_name = re.sub(REGEX_NIC, u"", - col.lower().replace(u'-ndrpdr', u''). - replace(u'2n1l-', u'')) + col.lower().replace(u'-reconf', u''). + replace(u'2n1l-', u'').replace(u'2n-', u''). + replace(u'-testpmd', u'')) traces.append(plgo.Box( x=[str(i + 1) + u'.'] * len(df_y[col]), - y=[y if y else None for y in df_y[col]], + y=df_y[col], name=( f"{i + 1}. " f"({nr_of_samples[i]:02d} " f"run{u's' if nr_of_samples[i] > 1 else u''}, " f"packets lost average: {mean(loss[col]):.1f}) " - f"{u'-'.join(tst_name.split(u'-')[3:-2])}" + f"{u'-'.join(tst_name.split(u'-')[2:])}" ), hoverinfo=u"y+name" ))