diff options
| author | J08nY | 2019-03-13 17:50:56 +0100 |
|---|---|---|
| committer | J08nY | 2019-03-13 17:50:56 +0100 |
| commit | dd620345feba56c413fcba1376c8a536033940b6 (patch) | |
| tree | 9a0872ed38ef115ed3ddee07055450d03dcaa310 /util/utils.py | |
| parent | 26e5f00e782d3d060e3d78d34c16c405656f8c69 (diff) | |
| download | ECTester-dd620345feba56c413fcba1376c8a536033940b6.tar.gz ECTester-dd620345feba56c413fcba1376c8a536033940b6.tar.zst ECTester-dd620345feba56c413fcba1376c8a536033940b6.zip | |
Diffstat (limited to 'util/utils.py')
| -rw-r--r-- | util/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 "")) |
