Skip to content

Commit 40b56cd

Browse files
committed
Update histogram.py
1 parent 09b029f commit 40b56cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bashplotlib/histogram.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def plot_hist(f, height=20.0, bincount=None, binwidth=None, pch="o", colour="def
122122
mean /= n
123123

124124
bins = list(calc_bins(n, min_val, max_val, bincount, binwidth))
125-
hist = {i: 0 for i in range(len(bins))}
125+
hist = dict((i, 0) for i in range(len(bins)))
126126

127127
for number in read_numbers(f):
128128
for i, b in enumerate(bins):

0 commit comments

Comments
 (0)