Feature #2425

Reflectometry plots: use bisection get steep minima right

Added by wuttke 4 months ago.

Status:NewStart date:29 Nov 2019
Priority:NormalDue date:
Assignee:-% Done:


Target version:-


Currently, plots of log(reflected intensity) vs alpha_i are inaccurate when there are deep and steep minima. Obviously because the reflected intensity is only computed for preset equidistant values of alpha_i.

To solve this problem, we need to detect sudden changes in slope, and insert additional data points. This can be done by bisectioning. We also need to detect when the graph leaves the current plot window (falls below y_min), and when it resurfaces.

All this I have implemented for arbitrary function plotting in Frida; that code could be reused here.

Also available in: Atom PDF