4.4. cpforager.diagnostic.plot_ts_wtrips

cpforager.diagnostic.plot_ts_wtrips(ax, df, plot_params, n_trips, var, title, var_lab, custom_locator=None, custom_formatter=None)

Plot timeserie of the dataframe column designated by the value of var colored by trips.

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.

  • n_trips (int) – number of trips.

  • 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.