X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_plots.py;h=1f5a1a7451673555fd910d3148081ed079cdb593;hp=db130fa9b79a14889692782e58ba58be1201228b;hb=7d7ec5e661abec4dda2546843addf1a71580e97e;hpb=5e996684dd0c95089256631c696e4fb9e72e21a2 diff --git a/resources/tools/presentation/generator_plots.py b/resources/tools/presentation/generator_plots.py index db130fa9b7..1f5a1a7451 100644 --- a/resources/tools/presentation/generator_plots.py +++ b/resources/tools/presentation/generator_plots.py @@ -492,15 +492,19 @@ def plot_nf_reconf_box_name(plot, input_data): col.lower().replace(u'-ndrpdr', u''). replace(u'2n1l-', u'')) + if u"ipsec" in tst_name: + show_name = u'-'.join(tst_name.split(u'-')[2:-1]) + else: + show_name = u'-'.join(tst_name.split(u'-')[3:-2]) 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"{show_name}" ), hoverinfo=u"y+name" ))