title: How to normalize a histogram of an exponential distributionin scipy?
body: <p>I'm trying to fit an exponential distribution to a dataset I have. Strangely, no matter what I do I can't seem to scale the histogram so it fits the fitted exponential distribution.</p>
  
  <pre><code>param=expon.fit(data)
  pdf_fitted=norm.pdf(x,loc=param[0],scale=param[1])
  plot(x,pdf_fitted,'r-')
  hist(constraint1N55, normed=1,alpha=.3,histtype='stepfilled')
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/bna8O.png" alt="Probability distribution. Note how the histogram has much more area than the exponential fit."></p>
  
  <p>For some reason, the histogram takes up much more space than the probability distribution, even though I have normed=1. Is there something I can do to make things fit more appropriately?</p>