From: Jean-Baptiste C. <Jea...@de...> - 2004-03-18 14:36:57
|
S=E6ll=20 One mroe question from me today :) I have some trouble running polyfit with matplotlib-0.52 Can you please help me finding out what I do wrong=20 I give a list of x values and y values as well as the degree of the desired= polynome. But all I get is the following error >>> x=3D[1,2,3] >>> y=3D[1,2,1] >>> polyfit(x,y,3) Traceback (most recent call last): File "<<console>>", line 1, in ? File "/usr/lib/python2.2/site-packages/matplotlib/mlab.py", line 341, in = polyfit X =3D Matrix(vander(x, N+1)) File "/usr/lib/python2.2/site-packages/matplotlib/mlab.py", line 383, in = vander X =3D ones( (len(x),N), x.typecode()) AttributeError: 'list' object has no attribute 'typecode' Any idea ? Thanks Jean-Baptiste --=20 ----------------------------- Jea...@de... Department of Statistics deCODE genetics Sturlugata,8 570 2993 101 Reykjav=EDk |