graphinglib.Scatter.get_coordinates_at_x#

Scatter.get_coordinates_at_x(x: float, interpolation_method: str = 'linear') tuple[float, float][source]#

Gets the coordinates of the point on the curve at a given x value.

Parameters:
xfloat

The x value of the point.

interpolation_methodstr,

The type of interpolation to be used, as defined in scipy.interpolate.interp1d.

Defaults to “linear”.

Returns:
tuple[float, float]

The coordinates of the point on the curve at the given x value.