mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-28 08:08:58 +00:00
Only show title if it is set
This commit is contained in:
1 parent
3553812436
commit
907d38aa18
1 file changed
+2
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user