From 84ec89bbb5e870ab72ddbab024eb6e87b909905d Mon Sep 17 00:00:00 2001 From: Tibor Frank Date: Mon, 15 Nov 2021 16:50:47 +0100 Subject: Report: Add boxpoints to aws tput graphs Change-Id: Idaeba305747863178a5eebc1d42f389a14d6084e Signed-off-by: Tibor Frank --- resources/tools/presentation/generator_plots.py | 29 ++++++++++++++----------- 1 file changed, 16 insertions(+), 13 deletions(-) (limited to 'resources/tools/presentation/generator_plots.py') diff --git a/resources/tools/presentation/generator_plots.py b/resources/tools/presentation/generator_plots.py index 661823cac1..6006ae9b6a 100644 --- a/resources/tools/presentation/generator_plots.py +++ b/resources/tools/presentation/generator_plots.py @@ -899,20 +899,23 @@ def plot_ndrpdr_box_name(plot, input_data): REGEX_NIC, u'', key.lower().replace(u'-ndrpdr', u''). replace(u'2n1l-', u'') ) - traces.append( - plgo.Box( - x=[data_x[idx], ] * len(data_x), - y=[y / 1e6 if y else None for y in vals], - name=( - f"{idx+1}." - f"({len(vals):02d} " - f"run" - f"{u's' if len(vals) > 1 else u''}) " - f"{name}" - ), - hoverinfo=u"y+name" - ) + kwargs = dict( + x=[data_x[idx], ] * len(data_x), + y=[y / 1e6 if y else None for y in vals], + name=( + f"{idx + 1}." + f"({len(vals):02d} " + f"run" + f"{u's' if len(vals) > 1 else u''}) " + f"{name}" + ), + hoverinfo=u"y+name" ) + box_points = plot.get(u"boxpoints", None) + if box_points and box_points in \ + (u"all", u"outliers", u"suspectedoutliers", False): + kwargs[u"boxpoints"] = box_points + traces.append(plgo.Box(**kwargs)) try: data_y_max.append(max(vals)) except ValueError as err: -- cgit 1.2.3-korg