5.4. cpforager.diagnostic.plot_ts_multiple

cpforager.diagnostic.plot_ts_multiple(ax, df, params, plot_params, color_palette, vars, title, var_lab, custom_locator=None, custom_formatter=None, scatter=True, hline=None, eph_cond=None)

Plot timeserie of the dataframe columns designated by the value of list vars.

Parameters:
  • ax (matplotlib.Axes) – plot axes.

  • df (pandas.DataFrame) – dataframe with a datetime column and the column designated by the value of var.

  • params (dict) – parameters dictionary.

  • plot_params (dict) – plot parameters dictionary.

  • color_palette (list of str) – list of colors for the plots.

  • vars (list of str) – list of column names 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.