4.3. cpforager.diagnostic.plot_ts
- cpforager.diagnostic.plot_ts(ax, df, plot_params, var, title, var_lab, custom_locator=None, custom_formatter=None, scatter=True, hline=None, eph_cond=None)
Plot timeserie of the dataframe column designated by the value of var.
- Parameters:
ax (matplotlib.Axes) – plot axes.
df (pandas.DataFrame) – dataframe with a
datetime
column and the column designated by the value of var.plot_params (dict) – plot parameters dictionary.
var (str) – name of the column in df.
title (str) – plot title.
var_lab (str) – y-axis label.
custom_locator (matplotlib.dates.DayLocator) – data locator.
custom_formatter (matplotlib.dates.DateFormatter) – date formatter.
scatter (bool) – scatter plot if True, line plot otherwise.
hline (float) – value of the horizontal line to plot.
eph_cond (pandas.DataFrame(dtype=bool)) – condition to emphasize points.