xdem.spatialstats.plot_1d_binning

xdem.spatialstats.plot_1d_binning#

xdem.spatialstats.plot_1d_binning(df, var_name, statistic_name, label_var=None, label_statistic=None, min_count=30, ax=None, out_fname=None)[source]#

Plot a statistic and its count along a single binning variable. Input is expected to be formatted as the output of the xdem.spatialstats.nd_binning function.

Parameters:
  • df (DataFrame) – Output dataframe of nd_binning

  • var_name (str) – Name of binning variable to plot

  • statistic_name (str) – Name of statistic of interest to plot

  • label_var (str | None) – Label of binning variable

  • label_statistic (str | None) – Label of statistic of interest

  • min_count (int) – Removes statistic values computed with a count inferior to this minimum value

  • ax (Axes | None) – Plotting ax to use, creates a new one by default

  • out_fname (str) – File to save the variogram plot to

Return type:

None