src.dackar.anomalies.plotUtils¶
Attributes¶
Functions¶
|
plot data from pandas dataframe (column-wise) |
|
plot K-dimensional profile from pandas dataframe (column-wise) |
|
Plot anomalies for given data |
Module Contents¶
- src.dackar.anomalies.plotUtils.plot_data(df, mp, title='Data vs. Matrix Profile', sharex=True, gridspec_kw={'hspace': 0})[source]¶
plot data from pandas dataframe (column-wise)
- Parameters:
df (pandas.dataframe) – data
title (str, optional) – title for the plot. Defaults to ‘’.
sharex (bool, optional) – share x-axis. Defaults to True.
gridspec_kw (dict, optional) – grid option for plots. Defaults to {‘hspace’:0}.
- src.dackar.anomalies.plotUtils.plot_kdp(df, title='K-Dimensional Profile', sharex=True, gridspec_kw={'hspace': 0})[source]¶
plot K-dimensional profile from pandas dataframe (column-wise)
- Parameters:
df (pandas.dataframe) – K-dimensional profile
title (str, optional) – title for the plot. Defaults to ‘’.
sharex (bool, optional) – share x-axis. Defaults to True.
gridspec_kw (dict, optional) – grid option for plots. Defaults to {‘hspace’:0}.
- src.dackar.anomalies.plotUtils.plot_anomaly(df, mps, anomalies_idx, m, title=None, sharex=True, gridspec_kw={'hspace': 0})[source]¶
Plot anomalies for given data
- Parameters:
df (pandas.DataFrame) – _description_
mps (dict) – dictionary of matrix profiles of df
anomalies_idx (dict) – dictionary of anomaly indices
m (int) – length of slide window
title (str, optional) – title for the plot. Defaults to None.
sharex (bool, optional) – share x-axis. Defaults to True.
gridspec_kw (dict, optional) – _description_. Defaults to {‘hspace’:0}.