graphinglib.FitFromSine.get_coordinates_at_x#

FitFromSine.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.

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 queried x.

Defaults to “linear”.

Returns:
tuple[float, float]

The coordinates of the curve at the given x value.