diff --git a/scripts/plot_histogram.py b/scripts/plot_histogram.py index 2fc5df0..7e9e8b2 100755 --- a/scripts/plot_histogram.py +++ b/scripts/plot_histogram.py @@ -4,6 +4,7 @@ import argparse import json +import numpy as np import matplotlib.pyplot as plt parser = argparse.ArgumentParser(description=__doc__) @@ -17,7 +18,11 @@ 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") +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]")