5.5. cpforager.diagnostic.plot_ts_wclasses
- cpforager.diagnostic.plot_ts_wclasses(ax, df, params, plot_params, class_var, var, title, var_lab, hide_zero_class=True, custom_locator=None, custom_formatter=None)
Plot timeserie of the dataframe column designated by the value of var colored by classes (e.g. dives, trips).
- Parameters:
ax (matplotlib.Axes) – plot axes.
df (pandas.DataFrame) – dataframe with a
datetimecolumn and the column designated by the value of var.params (dict) – parameters dictionary.
plot_params (dict) – plot parameters dictionary.
class_var (str) – name of the column in df containing class information.
var (str) – name of the column in df.
title (str) – plot title.
var_lab (str) – y-axis label.
hide_zero_class (bool) – hide zero class if True
custom_locator (matplotlib.dates.DayLocator) – data locator.
custom_formatter (matplotlib.dates.DateFormatter) – date formatter.