mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-28 16:18:57 +00:00
Auto-format Python scripts
This commit is contained in:
1 parent
a870d4db3d
commit
8fff8643e0
5 files changed
+23
-17
No files matched your search
@@ -18,12 +18,14 @@ with open(args.file) as f:
|
||||
commands = [b["command"] for b in results]
|
||||
all_times = [b["times"] for b in results]
|
||||
|
||||
plt.hist(all_times,
|
||||
label=commands,
|
||||
bins="auto",
|
||||
histtype="bar",
|
||||
range=(np.min(all_times), np.max(all_times)))
|
||||
plt.legend(prop={'family': ['Source Code Pro', 'Fira Mono', 'Courier New']})
|
||||
plt.hist(
|
||||
all_times,
|
||||
label=commands,
|
||||
bins="auto",
|
||||
histtype="bar",
|
||||
range=(np.min(all_times), np.max(all_times)),
|
||||
)
|
||||
plt.legend(prop={"family": ["Source Code Pro", "Fira Mono", "Courier New"]})
|
||||
|
||||
plt.xlabel("Time [s]")
|
||||
if args.title:
|
||||
|
||||
Reference in new issue
Block a user