diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2023-12-14 14:01:45 +0100 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2023-12-14 14:01:45 +0100 |
commit | 71a950990e6654022317264277754d25cb830d9f (patch) | |
tree | e3bda7db55852b7c93094d131adbbadd6e32b552 /bin | |
parent | e20ef9bcfb2fd49ae87a0fdd3afb531bb4042639 (diff) |
boxplot-unparam: show filter in boxplot title if set
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/analyze-log.py | 7 |
1 files changed, 7 insertions, 0 deletions
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, ) |