Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dennis-tra/d097e90e639f5568f388db4f0e9a8e35 to your computer and use it in GitHub Desktop.
Save dennis-tra/d097e90e639f5568f388db4f0e9a8e35 to your computer and use it in GitHub Desktop.
Gnuplot fit gaussian curve
gauss(x)=a/(sigma*sqrt(2.*pi))*exp(-(x-mu)**2./(2.*sigma**2))
fit gauss(x) ‘gaussTest.dat’ via a, sigma, mu
plot "data.csv" u 1:2, gauss(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment