graphinglib.FitFromFOTF.create_tangent_curve#

FitFromFOTF.create_tangent_curve(x: float, label: str | None = None, color: str = 'default', line_width: float | Literal['default'] = 'default', line_style: str = 'default', copy_first: bool = False) Self#

Creates a new curve which is the tangent to the original curve at a given x value.

Parameters:
xfloat

The x value at which the tangent is to be calculated.

labelstr, optional

Label of the new curve to be displayed in the legend.

colorstr

Color of the new curve. Default depends on the figure_style configuration.

line_widthfloat

Width of the new curve. Default depends on the figure_style configuration.

line_stylestr

Style of the new curve. Default depends on the figure_style configuration.

copy_firstbool

If True, a copy of the curve (with all its parameters) will be returned with the tangent applied. Any other parameters passed to this method will also be applied to the copied curve. If False, a new curve will be created with the tangent applied and the parameters passed to this method.

Returns:
Curve

A Curve object which is the tangent to the original curve at a given x value.