Skip to content Skip to sidebar Skip to footer

Unable To Use `scipy.interpolate.rectbivariatespline` With `matplotlib.pyplot,plot_surface`

I tried building a minimal example to reproduce a problem I was having. Please ignore the randomly generated data arrays x and y. I am feeding perfectly meaningful data into the zS

Solution 1:

See the documentation.

The issue is that xg and yg you give to the spline are 2D arrays, but the routine expects them to be 1D arrays that define the grid (i.e. xi,yi).


Post a Comment for "Unable To Use `scipy.interpolate.rectbivariatespline` With `matplotlib.pyplot,plot_surface`"