title: Get data points from a histogram in Python
body: <p>I made a histogram of the 'cdf' (cumulative distribution) of a function. The histogram is basically No. of counts vs. luminosity. Now, how do I extract data points from a histogram? I need actual values of Luminosities.
  I am using Matplotlib in Python, and any online book, example, tutorial etc is not helping. </p>
  
  <pre><code>l= [ss.gammainccinv(aa+1, u[i]) for i in a] #is the cdf function
  plt.hist(l, 50, histtype= 'step', align='mid') #is the histogram
  plt.show()
  </code></pre>
  
  <p>I am not sure if I should align the bins to the edges or the mid point, but all I need is a list of l's.</p>
  
  <p>Any suggestions would be greatly appreciated!</p>