timesead.utils.plot_utils
Functions
|
|
|
|
|
Plot 1D sequence against anomaly windows. |
|
Save the current figure and close it. |
|
Sets the rcParmaters of matplotlib from a style file. |
Module Contents
- timesead.utils.plot_utils.plot_error_bars(means: list, deviations: list, ax: matplotlib.pyplot.Axes | None = None, offset: int = 0, **kwargs)
- timesead.utils.plot_utils.plot_histogram(data: List[int] | None = None, resolution: int = 100, yticks: int | List | None = None, ax: matplotlib.axes.Axes | None = None, hist_range: Tuple[int, int] = (0, 1), xticks: List[int] | None = None, **kwargs)
- timesead.utils.plot_utils.plot_sequence_against_anomaly(values: List[float], targets: List[float], ax: matplotlib.axes.Axes | None = None, xticks: int | List | None = None, scatter: bool = True, yticks: bool = True)
Plot 1D sequence against anomaly windows.
- Parameters:
values (List[float]) – Sequence of values to plot against anomalies.
targets (List[float]) – List of labels taking values in {0,1} of the same length as values.
ax (Optional[mplt.axes.Axes]) – Axes object to use for plotting. Uses current Axes if None.
xticks (Optional[Union[int, List]]) – Generates <xticks> xticks if int. Uses xticks directly if List. No xticks if None.
scatter (bool) – Draw values as line plot or scatter plot.
yticks (bool) – Set yticks.