univariate_timeseries_visualizer
Univariate time series visualizer implementation.
This module provides a visualizer for rendering univariate time series data with change point annotations, period fills, and ground truth markers.
- class pysatl_cpd.analysis.visualization.timeseries.univariate_timeseries_visualizer.UnivariateTimeseriesVisualizer(backend)[source]
Bases:
ITimeseriesVisualizer[DataProvider[Number,TimeseriesAnnotation]]Visualizer for univariate time series with change point annotations.
This visualizer renders the original time series data with optional detected change points, forced change points, ground truth markers, learning periods, skip periods, and margin windows.
- Parameters:
backend (
DrawBackend) – Plotting backend to use for rendering.
- __init__(backend)[source]
- Parameters:
backend (DrawBackend)
- Return type:
None
- set_data_provider(data_provider)[source]
Set the data provider containing the time series observations.
- Parameters:
data_provider (
DataProvider[double|int|float,TimeseriesAnnotation]) – Provider with univariate numeric observations.- Return type:
Self
- set_plot_opts(**options)[source]
Set general plot options for time series subplot.
- Parameters:
**options (
Unpack[PlotSpec]) –- xlabel:
X-axis label.
- ylabel:
Y-axis label.
- grid:
Show grid lines.
- title:
Subplot title.
- Return type:
Self