Files
sf-op/script/test/TestHarmonicFitOffset.py
voulot_d c6a20f54f2 Startup
2017-06-02 16:21:26 +02:00

10 lines
175 B
Python

run("CPython/wrapper")
y = [0,2,5,8,15,25, 20, 16,4,-2,-5]
x = [0,10,20,30,40,50, 60, 70, 80, 90, 100]
r = hfitoff(y, x)
print r
plot([y,r[5]], ["data", "fit"], [x, r[4]])