graphinglib.FitFromSquareRoot.get_coordinates_at_x#
- FitFromSquareRoot.get_coordinates_at_x(x: float, interpolation_method: str = 'linear') tuple[float, float]#
Gets the coordinates of the curve at a given x value.
- Parameters:
- xfloat
The x value of the desired coordinates.
- interpolation_methodstr,
The type of interpolation to be used, as defined in
scipy.interpolate.interp1d.See also
For
"nearest","previous", and"next", the returned coordinates snap to an actual data point instead of interpolating; for every other kind, the returned x is the same as the queriedx.Defaults to “linear”.
- Returns:
- tuple[float, float]
The coordinates of the curve at the given x value.