DOC: Suggested improvement to interp2d transition guide #20620
Labels
Documentation
Issues related to the SciPy documentation. Also check https://github.com/scipy/scipy.org
scipy.interpolate
Issue with current documentation:
The current documentation does not mention that
interp2d
has a defaultkind='linear'
kwarg:while the suggested replacement,
RectBivariateSpline
, has a defaultky=3
kwarg:That is, the default spline degree differs.
Idea or request for content:
A simple fix is to note that the default
uses linear spline, but
uses a cubic spline as default. Explicitly mention the required kwargs that need to be added to
RectBivariateSpline
to make it match the defaultinterp2d
function.Maybe add a little table that shows how to get identical results, e.g.
Hope this doc suggestion can help others. I suspect the impending deprecation of
interp2d
is going to cause a fair few codes to catch on fire, so really pleased y'all have written the transition guide 🙏.Additional context (e.g. screenshots, GIFs)
No response
The text was updated successfully, but these errors were encountered: