Skip to content Skip to sidebar Skip to footer

Scipy Griddata Qhullerror: Center Point Is Coplanar With A Facet, Or A Vertex Is Coplanar With A Neighboring Facet

I'm having a strange issue using scipy.interpolate.griddata. It's a QhullError. It says center point is coplanar with a facet, or a vertex is coplanar with a neighboring facet.. Wh

Solution 1:

Because your X and Y are identical, wich means all the points you provided to interpolate are the on the plane x=y.

X = np.linspace(-3, 3)
Y = (np.random.random(50)-0.5)*6 # Just make sure X and Y are non-linear.
Z = f(X, Y)
xi = np.linspace(X.min(), X.max(), 1000)
yi = np.linspace(Y.min(), Y.max(), 1000)
zi = griddata((X, Y), Z, (xi[None,:], yi[:,None]), method='cubic')

Post a Comment for "Scipy Griddata Qhullerror: Center Point Is Coplanar With A Facet, Or A Vertex Is Coplanar With A Neighboring Facet"