kazemakase February 2016
In that case you can simply create a bar chart with
plt.bar(bins[:, 0], x, bins[:, 1] - bins[:, 0])
I simply assumed
bins is an array of shape
(n, 2), where
nis the number of bins. The first column is the lowest value covered by the bin and the second column is the upper value covered by the bin.