graphinglib.FitFromFunction.get_coordinates_at_y#
- FitFromFunction.get_coordinates_at_y(y: float, interpolation_method: str = 'linear') list[tuple[float, float]] #
Gets the coordinates of the curve at a given y value. Can return multiple coordinate pairs if the curve crosses the y value multiple times.
- Parameters:
- yfloat
The y value of the desired coordinates.
- interpolation_methodstr,
The type of interpolation to be used, as defined in
scipy.interpolate.interp1d
.See also
Defaults to “linear”.
- Returns:
- list[tuple[float, float]]
The coordinates of the points on the curve at the given y value.