From 793c1bed18a405767f56f51e4ec417c49c80adb6 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Thu, 14 Dec 2023 16:16:49 +0100 Subject: boxplot: remove hardcoded 'dfatool unparam' title --- lib/plotter.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/plotter.py b/lib/plotter.py index 5fa44ee..66daf0c 100755 --- a/lib/plotter.py +++ b/lib/plotter.py @@ -346,13 +346,13 @@ def boxplot( modeldata=None, output=None, show=True, - title_suffix=None, + title=None, ): fig, ax1 = plt.subplots(figsize=(10, 6)) - if title_suffix: - ax1.set_title(f"dfatool unparam (n={len(measurements[0])}, {title_suffix})") + if title: + ax1.set_title(f"{title} (n={len(measurements[0])})") else: - ax1.set_title(f"dfatool unparam (n={len(measurements[0])})") + ax1.set_title(f"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) -- cgit v1.2.3