Is there any non-scipy code that creates smooth interpolation of 2D datasets?
EDIT: It would be nice to use Numpy’s solution, I used to have problems installing them but I now have numpy installed on some systems
Similar to http://en.wikipedia.org/wiki/Cubic_Hermite_spline#Finite_difference would be great.
I
have a set of x,y data points and I’m looking for a way to plot smooth paths between data points. I need to access the actual point so that the Bezier curve doesn’t cut it.
Thanks in advance
Solution
The Scipy polynomial interpolation module is fairly independent. If you really need to avoid dependencies, you can copy the file into your own project:
https://github.com/scipy/scipy/blob/master/scipy/interpolate/polyint.py
The same is true for spline interpolation routines by splmake/spleval
:
https://github.com/scipy/scipy/blob/master/scipy/interpolate/interpolate.py