From 36be13ecc4636798376b2be8cd4e67e58053d5fc Mon Sep 17 00:00:00 2001 From: gac-x10da Date: Tue, 26 Feb 2019 10:54:05 +0100 Subject: [PATCH] Script execution --- script/test/TestCPython.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/script/test/TestCPython.py b/script/test/TestCPython.py index 1c64bc1..d0c5155 100644 --- a/script/test/TestCPython.py +++ b/script/test/TestCPython.py @@ -6,4 +6,17 @@ x=[1,2,7,20,100,16,4,3,2] y=range(len(x)) -print gfitoff(x, y): \ No newline at end of file +[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] \ No newline at end of file