graphinglib.Curve.create_points_at_y#

Curve.create_points_at_y(y: float, interpolation_method: str = 'linear', label: str | None = None, color: str = 'default', edge_color: str = 'default', marker_size: float | Literal['default'] = 'default', marker_style: str = 'default', line_width: float | Literal['default'] = 'default') list[Point][source]#

Gets the points on the curve at a given y value. Can return multiple Point objects if the curve crosses the y value multiple times.

Parameters:
yfloat

The y value of the desired points.

interpolation_methodstr

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

Defaults to “linear”.

labelstr, optional

Point label to be displayed in the legend.

colorstr

Face color of the point. Default depends on the figure_style configuration.

edge_colorstr

Edge color of the point. Default depends on the figure_style configuration.

marker_sizefloat

Size of the point. Default depends on the figure_style configuration.

marker_stylestr

Style of the point. Default depends on the figure_style configuration.

line_widthfloat

Width of the point edge. Default depends on the figure_style configuration.

Returns:
list[Point]

The Point objects on the curve at the given y value.