graphinglib.FitFromExponential.get_area_between#
- FitFromExponential.get_area_between(x1: float, x2: float, fill_between: bool = False, fill_color: str = 'default', other_curve: Self | None = None) float #
Calculates the area between the curve and the x axis between two x values. This is the definite integral of the curve between the two x values.
- Parameters:
- x1, x2float
The x values between which the area is to be calculated.
- fill_betweenbool
Whether to fill the specified area between the curve and the x axis when displaying. Defaults to
False
.- fill_colorstr
Color of the area between the curve and the x axis when
fill_between
is set toTrue
. Default depends on thefigure_style
configuration.- other_curve
Curve
, optional If specified, the area between the two curves will be calculated instead of the area between the curve and the x axis.
- Returns:
- The area (float) between the curve and the x axis (or between the two curves) between the two given x values.