Skip to content

Commit 607f778

Browse files
GregGreg
authored andcommitted
removing dict comprehensions
1 parent 886d12f commit 607f778

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

bashplotlib/histogram.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ def plot_hist(f, height=20.0, bincount=None, pch="o", colour="white", title="",
8181
mean /= n
8282

8383
bins = list(calc_bins(n, min_val, max_val, bincount))
84-
hist = {i: 0 for i in range(len(bins))}
84+
hist = {}
85+
for i in range(len(bings)):
86+
hist[i] = 0
8587
for number in read_numbers(f):
8688
for i, b in enumerate(bins):
8789
if number < b:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
setup(
55
name="bashplotlib",
6-
version="0.4.0",
6+
version="0.5.0",
77
author="Greg Lamp",
88
author_email="[email protected]",
99
url="https://github.com/glamp/bashplotlib",

0 commit comments

Comments
 (0)