graphinglib.Curve.get_coordinates_at_x#
- Curve.get_coordinates_at_x(x: float, interpolation_method: str = 'linear') tuple[float, float] [source]#
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
Defaults to “linear”.
- Returns:
- tuple[float, float]
The coordinates of the curve at the given x value.