title: How to add (or annotate) value labels (or frequencies) on a matplotlib "histogram" chart
body: <p>I want to add frequency labels to the histogram generated using plt.hist.</p>
  <p>Here is the data :</p>
  <pre><code>np.random.seed(30)
  d = np.random.randint(1, 101, size = 25)
  print(sorted(d))
  </code></pre>
  <p>I looked up other questions on stackoverflow like :
  <a href="https://stackoverflow.com/questions/28931224/adding-value-labels-on-a-matplotlib-bar-chart">Adding value labels on a matplotlib bar chart</a>
  and their answers, but apparantly, the objects returnded by plt.plot(kind='bar') are different than than those returned by plt.hist, and I got errors while using the 'get_height' or 'get width' functions, as suggested in some of the answers for bar plot.</p>
  <p>Similarly, couldn't find the solution by going through the matplotlib documentation on histograms.
  got this error</p>