title: curve fitting with python
body: <p>I'm trying to fit some data and stuff, I know there is a simple command to do this with python/numpy/matplotlib, but I can't find it. I think it is something like </p>
  
  <pre><code>popt,popc = numpy.curvefit(f,x)
  </code></pre>
  
  <p>where <code>popt</code> is the paramters of <code>f</code>, <code>popc</code> is the fit quality and <code>f</code> is a predefined function of f. Does any of you know it?</p>