4.6. cpforager.diagnostic.plot_cumulative_distribution

cpforager.diagnostic.plot_cumulative_distribution(df, plot_params, var, title, var_lab, v_qs=[0.25, 0.5, 0.75])

Plot the cumulative distribution of dataframe column designated by the value of var.

Parameters:
  • df (pandas.DataFrame) – dataframe with 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.

  • v_qs (array(float)) – array of quantiles to emphasize.

Useful to plot cumulative distribution of trip and dive statistics.