Hello Robert,
I studied delaunay and mlab.griddata a bit while converting tinterp and
saw the
"""
tri = delaunay.Triangulation(x,y)
# interpolate data
interp = tri.nn_interpolator(z)
zo = interp(xi,yi)
"""
stuff. In studying delaunay, however, it was/is not cle
x)
fL= tinterp(p,t,f,x,y)
fQ= tinterp(p,t,f,x,y,'quadratic')
figure, mesh(x,y,fL), title('Linear interpolation')
figure, mesh(x,y,fQ), title('Quadratic interpolation')
Original MATLAB VERSION:
Any comments? Let me know:
d
Here is an example using matplotlib.delaunay, which automatically
returns the edges and triangules:
import matplotlib.delaunay as delaunay
import matplotlib.pyplot as pp
#generate points
npts=41
xpt=sp.random.random_sample(npts)
ypt=sp.random.random_sample(npts)
#create triangulation
circumcen