graphinglib.FitFromFunction.create_intersection_points#

FitFromFunction.create_intersection_points(other: Self, labels: list[str] | str | None = None, face_colors: list[str] | str | Inherit = Inherit, edge_colors: list[str] | str | Inherit = Inherit, marker_sizes: list[float] | float | Inherit = Inherit, marker_styles: list[str] | str | Inherit = Inherit, edge_widths: list[float] | float | Inherit = Inherit, alphas: list[float] | float | Inherit = Inherit) list[Point]#

Creates the intersection Points between two curves.

Parameters:
otherCurve

The other curve to calculate the intersections with.

as_point_objectsbool

Whether to return a list of Point objects (True) or a list of tuples of coordinates (False). Defaults to False.

labelslist[str] or str, optional

Labels of the intersection points to be displayed in the legend. If a single string is passed, all intersection points will have the same label.

face_colorslist[str] or str

Face colors of the intersection points. If a single string is passed, all intersection points will have the same color. Default depends on the figure_style configuration.

edge_colorslist[str] or str

Edge colors of the intersection points. If a single string is passed, all intersection points will have the same color. Default depends on the figure_style configuration.

marker_sizeslist[float] or float

Sizes of the intersection points. If a single float is passed, all intersection points will have the same size. Typical range is 10 to 100. Default depends on the figure_style configuration.

marker_styleslist[str] or str

Styles of the intersection points. If a single string is passed, all intersection points will have the same style. Common values include ".", ",", "o", "v", "^", "<", ">", "s", "p", "*", "h", "H", "+", "x", "D", "d", "|", "_", "P", "X", "None", " ", and "". Default depends on the figure_style configuration.

edge_widthslist[float] or float

Widths of the intersection points. If a single float is passed, all intersection points will have the same width. Typical range is 0 to 3 points. Default depends on the figure_style configuration.

alphaslist[float] or float

Opacities of the intersection points. If a single float is passed, all intersection points will have the same opacity. Range is 0 (transparent) to 1 (opaque). Default depends on the figure_style configuration.

Returns:
list[Point] or list[tuple[float, float]]

A list of Point objects which are the intersection points between the two curves.

Notes

Color parameters accept Matplotlib color formats: named colors ("blue"), short color strings ("b"), hex strings ("#0000ff"), grayscale strings ("0.5"), and RGB/RGBA tuples with values between 0 and 1 ((0, 0, 1) or (0, 0, 1, 0.5)).