plot the histogram of one coloumn data from a txt file
<p>I need to read data from a file which has only one column. Then plot the barred histogram of the data. However, by the following code the figure shows me only a line in zero and nothing more. </p>

<pre><code>import matplotlib.pyplot as plt
import numpy as np
import matplotlib

f= np.loadtxt('data Ties', unpack='False')

bins = np.linspace(0, 50, 100000)

plt.hist(f, bins, histtype='bar', rwidth=0.8)
plt.xlabel('Diameter')
plt.ylabel('Number of Chondrules')
plt.title('Distribution of chondules diameter')
plt.legend()
plt.show()
</code></pre>

<p>This is the piece of data I have:</p>

<pre><code>168000
199300
120900
216900
200800
137800
214200
174600
48200
126500
58700
149500
47500
5600
178500
25400
163000
182000
51900
66700
90300
210600
117800
164000
215200
170000
182000
38800
72700
161200
</code></pre>