vert_fill

Vertical fill visualizers component.

This module provides a component for visualizing filled vertical regions between x-coordinates.

class pysatl_cpd.analysis.visualization.components.vert_fill.VerticalFillComponent(backend)[source]

Bases: IVisualComponent

Component for visualising filled vertical regions between x-coordinates.

Parameters:

backend (DrawBackend) – Plotting backend.

__init__(backend)[source]
Parameters:

backend (DrawBackend)

Return type:

None

set_regions(regions)[source]

Set vertical regions to fill.

Parameters:

regions (Sequence[tuple[float, float]]) – Sequence of (start, end) x-coordinate pairs.

Return type:

Self

set_style(**style)[source]

Set style for vertical fills.

Parameters:

**style (Unpack[FillSpec]) –

fill_color:

Color for the filled region.

fill_alpha:

Opacity between 0 and 1.

Return type:

Self

clear()[source]

Clear all vertical regions.

Returns:

Returns self to allow method chaining.

Return type:

Self