4.9. cpforager.diagnostic.plot_hist

cpforager.diagnostic.plot_hist(df, plot_params, var, title, var_lab, bins=None, color=None, alpha=None, custom_locator=None, custom_formatter=None)

Plot the histogram of dataframe column designated by the value of var.

Parameters:
  • df (pandas.DataFrame) – dataframe with datetime and is_night columns 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) – x-axis label.

  • bins (array(float)) – histograms bins.

  • color ([float, float, float]) – color.

  • alpha (float) – transparency.

  • custom_locator (matplotlib.dates.DayLocator) – data locator.

  • custom_formatter (matplotlib.dates.DateFormatter) – date formatter.