MATPLOTLIB to pylab ?

Hi Ronnie,

I am converting some Matplotlib .m scripts to run in python with pylab.

Uhm, as far as I know, *.m files are Matlab files :smiley: . Matplotlib
ones have a Python file extension, *.py.

I had no problems until I came to:
file2_new.pos = interp1(file2.time, file2.pos, file1.time, 'spline');
which interpolates the file2 positions to fit the file1 times. I haven't
been able to find a function that does the same thing in the python 2.5
packages that does the same. Probably because I don't know enough about Math
to understand the function doc strings. Or am I overlooking an important
package?

I am not sure what it has to do with wxPython, but anyway, the only
"interp" function I know of interpolates functions/data, not files.
You can find a similar implementation in Scipy, and if you are looking
for splines, there are few NURBS toolbox out there that might help you
in case your calculations get sophisticated.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

···

On 7/16/07, Shoemaker, Ronnie A. wrote: