I have count data (a 100 of them), each correspond to a bin (0 to 99). I need to plot these data as histogram. However, histogram count those data and does not plot correctl
If I'm understanding what you want to achieve correctly then the following should give you what you want:
import matplotlib.pyplot as plt plt.bar(range(0,100), x) plt.show()
It doesn't use hist(), but it looks like you've already put your data into bins so there's no need.
hist()