CADETProcess.plotting.fill_between#
- CADETProcess.plotting.fill_between(ax: Axes, start: float, end: float, y_max: float, alpha: float = 0.3, *, color_index: int | None = None, text: str | None = None, **kwargs: Any) None[source]#
Add fill region with optional text labeling.
- Parameters:
- axplt.Axes
Matplotlib axes to plot on.
- startfloat
Start x-position of the fill region.
- endfloat
End x-position of the fill region.
- y_maxfloat
Maximum y-value for the fill.
- alphafloat, default=0.3
Transparency of the fill.
- color_indexint | None, default=None
Index into a predefined color list. If None, uses color from kwargs.
- textstr | None, default=None
Optional label for the region.
- **kwargs
Additional arguments passed to ax.fill_between.