With matplotlib\'s hist function, how can one make it display the count for each bin over the bar?
hist
For example,
import matplotlib.pyplot
it seems hist can't do this,you can write some like :
your_bins=20 data=[] arr=plt.hist(data,bins=your_bins) for i in range(your_bins): plt.text(arr[1][i],arr[0][i],str(arr[0][i]))