Script execution
This commit is contained in:
@@ -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]
|
||||
Reference in New Issue
Block a user