scipy-lectures / scientific-python-lectures

Tutorial material on the scientific Python ecosystem
https://lectures.scientific-python.org
Other
3.09k stars 1.19k forks source link

ENH: Update scipy.interpolate section #727

Closed mdhaber closed 5 months ago

mdhaber commented 5 months ago

This is a fairly minimal update to the interpolate section. Important points are that the example no longer uses the legacy function interp1d, and it highlights the distinction between the two main uses of splines: smoothing and interpolation.

One thing I could consider doing including in this PR is to simplify variable names. I maintained the existing style, but I would find the code easier to read with simpler variable names like t and x. LMK what you think.

In follow-up PRs, I could:

LMK what you'd be interested in.