Only show title if it is set

This commit is contained in:
David Peter authored and GitHub committed 2020-11-03 13:46:16 +01:00
1 parent 3553812436
commit 907d38aa18
1 file changed
+2 -1
+2 -1
View File
@@ -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)