plot_scatter_segmentation#

plot_scatter_segmentation(df: DataFrame, detections: DataFrame, x_var=None, y_var=None)[source][source]#

Plot segmentation of a time series.

Parameters:
dfpd.DataFrame

The time series data to plot. The index should represent the time points, while the columns represent the values of the time series.

detectionspd.DataFrame

The detections, on the format returned by detectors’ predict method.

x_varstr, optional

The name of the column to use for the x-axis. If None, the first column will be used.

y_varstr, optional

The name of the column to use for the y-axis. If None, the second column will be used.

Returns:
plotly.graph_objects.Figure

A Plotly figure with the time series and segments highlighted by different colors.