Skip to content
Snippets Groups Projects
Unverified Commit ebe9c2c3 authored by Recolic Keghart's avatar Recolic Keghart
Browse files

update data

parent 3f9c757c
No related branches found
No related tags found
No related merge requests found
......@@ -10,4 +10,7 @@ quickmap.GetMap(x,y,smoothLine=True)
x,y = quickmap.DataFileToXYArray('with_damping.dat')
quickmap.GetMap(x,y,smoothLine=True)
sq_T = '14.633 19.327 24.256 29.192 34.589 39.547'.split(' ')
sq_T = [float(e) for e in sq_T]
m = [0,10,20,30,40,50]
quickmap.GetMap(m,sq_T,polyLine=True)
......@@ -67,12 +67,9 @@ def GetMap(arrX, arrY, windowSizeX=12, windowSizeY=8, extendXRate=1, extendYRate
kFinal, _ = leastsq(lossFunc, kInit, args=(X, Y))
print('Fitting line done. k=', kFinal)
else:
print('Drawing map without fitting a line...')
print('Drawing map without fitting a line...\n')
# Draw function map.
rcParams['grid.linestyle'] = '-'
rcParams['grid.color'] = 'blue'
rcParams['grid.linewidth'] = 0.2
plt.figure(figsize=(windowSizeX, windowSizeY))
plt.scatter(X, Y, color="red", label="Sample Point", linewidth=3)
if polyLine:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment