Skip to content
Myr

Fix computation of min/max time range

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by sharkdp · parent a7e2889 · Browse files · 1 file+4 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:scripts/plot_histogram.py+4 added-1 removed
16 unmodified lines
1718commands = [b["command"] for b in results]19all_times = [b["times"] for b in results]2021t_min = np.min(list(map(np.min, all_times)))22t_max = np.max(list(map(np.max, all_times)))2324plt.hist(25 all_times,26 label=commands,27 bins="auto",28 histtype="bar",26 range=(np.min(all_times), np.max(all_times)),29 range=(t_min, t_max),30)31plt.legend(prop={"family": ["Source Code Pro", "Fira Mono", "Courier New"]})3233plt.xlabel("Time [s]")
4 unmodified lines