title: How do I find the peak of a fitted Gaussian curve?
body: <p>So I've fitted a Gaussian curve to some very noisy data. I was wondering how I'd go about finding the coordinates of the peak of the Gaussian line?</p>
  <pre><code>def fit_func(x,a,mu,sig,m,c):
              gauss = a*sp.exp(-(x-mu)**2/(2*sig**2))
              line = m*x+c
              return gauss + line            
          
          initial_guess=[160,mean,sd,2,100]
          po,po_cov=sp.optimize.curve_fit(fit_func,x,y,initial_guess)
  </code></pre>
  <p>This is the code I've used to fit that Gaussian. Would I have to add more to this? Or just something else?</p>