graphinglib.FitFromSine.create_integral_curve#

FitFromSine.create_integral_curve(initial_value: float = 0, label: str | None = None, color: str | Inherit = Inherit, line_width: float | Inherit = Inherit, line_style: str | Inherit = Inherit, alpha: float | Inherit = Inherit, copy_first: bool = False) Self#

Creates a new curve which is the integral of the original curve.

Parameters:
initial_valuefloat, optional

The value of the integral at the first x value (initial condition). Defaults to 0.

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. Typical range is 0.5 to 4. Default depends on the figure_style configuration.

line_stylestr

Style of the new curve. Values include "-", "--", "-.", ":", "solid", "dashed", "dashdot", and "dotted". Default depends on the figure_style configuration.

alphafloat

Opacity of the new curve. Range is 0 (transparent) to 1 (opaque). 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 integral 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 integral applied and the parameters passed to this method.

Returns:
A Curve object which is the integral of the original curve.

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)).