Skip to content

Commit 3ecdc25

Browse files
committed
bugfix: Did not read/open the textfile. Fixed now.
1 parent 5933873 commit 3ecdc25

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bashplotlib/histogram.py

+3
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ def plot_hist(f, height=20.0, bincount=None, binwidth=None, pch="o", colour="def
105105
if pch is None:
106106
pch = "o"
107107

108+
if isinstance(f, str):
109+
f = open(f).readlines()
110+
108111
min_val, max_val = None, None
109112
n, mean = 0.0, 0.0
110113

0 commit comments

Comments
 (0)