From fb76ee6b1de48b36d2c2170507c4aadd4bc95d85 Mon Sep 17 00:00:00 2001 From: Tibor Frank Date: Fri, 19 Nov 2021 13:08:01 +0100 Subject: PAL: Add boxpoints to all box graphs Change-Id: Ic316149bab15c6fe1efccb53df0afa1cc78b3672 Signed-off-by: Tibor Frank --- resources/tools/presentation/generator_plots.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 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 2d723145bf..2849007473 100644 --- a/resources/tools/presentation/generator_plots.py +++ b/resources/tools/presentation/generator_plots.py @@ -912,8 +912,8 @@ def plot_ndrpdr_box_name(plot, input_data): ), hoverinfo=u"y+name" ) - box_points = plot.get(u"boxpoints", None) - if box_points and box_points in \ + box_points = plot.get(u"boxpoints", u"all") + if box_points in \ (u"all", u"outliers", u"suspectedoutliers", False): kwargs[u"boxpoints"] = box_points kwargs[u"jitter"] = 0.3 @@ -1021,9 +1021,8 @@ def plot_mrr_box_name(plot, input_data): name=data_names[idx], 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): + box_points = plot.get(u"boxpoints", u"all") + if box_points in (u"all", u"outliers", u"suspectedoutliers", False): kwargs[u"boxpoints"] = box_points kwargs["jitter"] = 0.3 traces.append(plgo.Box(**kwargs)) -- cgit 1.2.3-korg