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 /lib | |
parent | e20ef9bcfb2fd49ae87a0fdd3afb531bb4042639 (diff) |
boxplot-unparam: show filter in boxplot title if set
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/plotter.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/plotter.py b/lib/plotter.py index 7ec96b3..5fa44ee 100755 --- a/lib/plotter.py +++ b/lib/plotter.py @@ -339,10 +339,20 @@ def plot_param_fit( def boxplot( - ticks, measurements, xlabel="", ylabel="", modeldata=None, output=None, show=True + ticks, + measurements, + xlabel="", + ylabel="", + modeldata=None, + output=None, + show=True, + title_suffix=None, ): fig, ax1 = plt.subplots(figsize=(10, 6)) - ax1.set_title(f"dfatool unparam (n={len(measurements[0])})") + if title_suffix: + ax1.set_title(f"dfatool unparam (n={len(measurements[0])}, {title_suffix})") + else: + ax1.set_title(f"dfatool unparam (n={len(measurements[0])})") plt.subplots_adjust(left=0.1, right=0.95, top=0.95, bottom=0.1) bp = plt.boxplot(measurements, notch=0, sym="+", vert=1, whis=1.5) |