interp2d transition guide
This page contains three sets of demonstrations:
lower-level FITPACK replacements for
scipy.interpolate.interp2dfor legacy bug-for-bug compatiblescipy.interpolate.interp2dreplacements;recommended replacements for
scipy.interpolate.interp2dfor use in new code;a demonstration of failure modes of 2D FITPACK-based linear interpolation and recommended replacements.
![Two plots side by side. On the left, the plot shows points with coordinates(x, z[0, :]) as red circles, and the interpolation function generated as a bluecurve. On the right, the plot shows a 2D projection of the generatedinterpolation function.](https://docs.stackmorelayers.ai/packages/scipy/1.18.0/_images/output_10_0.png)
![Two plots side by side. On the left, the plot shows points with coordinates(x, z[0, :]) as red circles, and the interpolation function generated as a bluecurve. On the right, the plot shows a 2D projection of the generatedinterpolation function.](https://docs.stackmorelayers.ai/packages/scipy/1.18.0/_images/output_18_0.png)
![Two plots side by side. On the left, the plot shows points with coordinates(x, z[0, :]) as red circles, and the interpolation function generated as a bluecurve. On the right, the plot shows a 2D projection of the generatedinterpolation function.](https://docs.stackmorelayers.ai/packages/scipy/1.18.0/_images/output_28_1.png)



![Two plots side by side. On the left, the plot shows points with coordinates(x, z[0, :]) as red circles, and the interpolation function generated as a bluecurve. On the right, the plot shows a 2D projection of the generatedinterpolation function.](https://docs.stackmorelayers.ai/packages/scipy/1.18.0/_images/output_12_0.png)
![Two plots side by side. On the left, the plot shows points with coordinates(x, z[0, :]) as red circles, and the interpolation function generated as a bluecurve. On the right, the plot shows a 2D projection of the generatedinterpolation function.](https://docs.stackmorelayers.ai/packages/scipy/1.18.0/_images/output_20_0.png)