A simple question: I have a function f(t) that is supposed to have some sharp peak at some point on [0,1]. A natural idea is to use adaptive sampling of this function to get a nice “adaptive” plot. How can I do that in a fast way in Python + matplotlib + numpy + whatever? I can compute f(t) for any t on [0,1].
It seems that Mathematica has this option, does the Python have one?
Look what I found: Adaptive sampling of 1D functions, the link from scipy-central.org.
The code is: