Script execution

This commit is contained in:
gac-x10da
2019-02-26 10:54:05 +01:00
parent 7e1f3f54c2
commit 36be13ecc4

View File

@@ -6,4 +6,17 @@ x=[1,2,7,20,100,16,4,3,2]
y=range(len(x))
print gfitoff(x, y):
[off, amp, com, sigma] = gfitoff(x, y)
'''
p = plot(None, title = 'Fit')[0]
from mathutils import Gaussian
from plotutils import plot_line, plot_function
fitted_function = Gaussian(amp, com, sigma)
ax = frange(0, 10, 0.1, True)
plot_function(p, fitted_function, "Gauss Fit", ax, color=Color.GREEN)
'''
print [off, amp, com, sigma]