X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_plots.py;fp=resources%2Ftools%2Fpresentation%2Fgenerator_plots.py;h=28490074736304185bb0b080e43524a40536e14b;hp=2d723145bf998f5112cd9bb0360ba3b432dd9ce0;hb=477db2655c589dfec9d4bdee7567f6e14d068f2b;hpb=fdf6fb175c4a8051ff75732b8b1bae139bacf9c8 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))