From 71a950990e6654022317264277754d25cb830d9f Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Thu, 14 Dec 2023 14:01:45 +0100 Subject: boxplot-unparam: show filter in boxplot title if set --- bin/analyze-log.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bin') diff --git a/bin/analyze-log.py b/bin/analyze-log.py index 0244ec8..0ea7921 100755 --- a/bin/analyze-log.py +++ b/bin/analyze-log.py @@ -150,6 +150,11 @@ def main(): ) if args.boxplot_unparam: + title_suffix = None + if args.filter_param: + title_suffix = "filter: " + ", ".join( + map(lambda kv: f"{kv[0]}={kv[1]}", args.filter_param) + ) for name in model.names: attr_names = sorted(model.attributes(name)) dfatool.plotter.boxplot( @@ -157,6 +162,7 @@ def main(): [model.by_name[name][attr] for attr in attr_names], xlabel="Attribute", output=f"{args.boxplot_unparam}{name}.pdf", + title_suffix=title_suffix, show=not args.non_interactive, ) for attribute in attr_names: @@ -164,6 +170,7 @@ def main(): [attribute], [model.by_name[name][attribute]], output=f"{args.boxplot_unparam}{name}-{attribute}.pdf", + title_suffix=title_suffix, show=not args.non_interactive, ) -- cgit v1.2.3