title: Fitting non-normpdf's to histograms in matplotlib
body: <p>I'm trying to do a fit to a histogram but without any luck. There's a bunch of information about how to do it in a normal probability density function but not to other types of pdf's.</p>
  
  <pre><code>import pylab as py
  import numpy as np
  import matplotlib.pyplot as plt
  from scipy.stats import exponpow
  
  # Fit procedure
  eigfit=[]
  for i in range(0,len(eigenvals1)):
  if eigenvals1&gt;=4.3:
      eigfit.append(eigenvals1[i])
  
  b = exponpow.fit(eigfit)
  </code></pre>
  
  <p>But I cannot find how to plot the curve for this exponential pdf. It gives me a couple of values from the fit, but in scipy docs it's not well explained how it does this fit.</p>