From dd620345feba56c413fcba1376c8a536033940b6 Mon Sep 17 00:00:00 2001 From: J08nY Date: Wed, 13 Mar 2019 17:50:56 +0100 Subject: Add custom command chaining to be able to test T=0 cards. --- util/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/utils.py') diff --git a/util/utils.py b/util/utils.py index bddfc35..664373f 100644 --- a/util/utils.py +++ b/util/utils.py @@ -21,7 +21,7 @@ def plot_hist(axes, data, xlabel=None, log=False): time_min = min(data) time_avg = np.average(data) time_median = np.median(data) - axes.hist(data, bins=time_max - time_min, log=log) + axes.hist(data, bins=time_max - time_min + 1, log=log, align="mid") axes.axvline(x=time_avg, alpha=0.7, linestyle="dotted", color="blue", label="avg = {}".format(time_avg)) axes.axvline(x=time_median, alpha=0.7, linestyle="dotted", color="green", label="median = {}".format(time_median)) axes.set_ylabel("count" + ("\n(log)" if log else "")) -- cgit v1.2.3-70-g09d2