From 907d38aa18e773a0bd64c02643658b98f18ff74b Mon Sep 17 00:00:00 2001 From: David Peter Date: Tue, 3 Nov 2020 13:46:16 +0100 Subject: [PATCH] Only show title if it is set --- scripts/plot_whisker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/plot_whisker.py b/scripts/plot_whisker.py index a37613f..6085c8f 100755 --- a/scripts/plot_whisker.py +++ b/scripts/plot_whisker.py @@ -36,7 +36,8 @@ colors = [cmap(val / len(times)) for val in range(len(times))] for patch, color in zip(boxplot["boxes"], colors): patch.set_facecolor(color) -plt.title(args.title) +if args.title: + plt.title(args.title) plt.legend(handles=boxplot["boxes"], labels=labels, loc="best", fontsize="medium") plt.ylabel("Time [s]") plt.ylim(0, None)