title: matplotlib - plotting histogram with unique bins
body: <p>I am trying to plot a histogram but the x ticks does not seem to get right.
  The plot is intended to get a histogram of frequency counts ( 1 to 13 ) and total rows in 10000.</p>
  
  <pre><code>d1 = []
  for i in np.arange(1, 10000):
  tmp = np.random.randint(1, 13)
  d1.append(tmp)
  d2 = pd.DataFrame(d1)
  d2.hist(width = 0.5)
  plt.xticks(np.arange(1, 14, 1))
  </code></pre>
  
  <p>I am trying to plot frequency count of values and not ranges.</p>
  
  <p><a href="https://i.stack.imgur.com/NH77C.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NH77C.png" alt="enter image description here"></a></p>