invert4geom.plot_stochastic_results

invert4geom.plot_stochastic_results#

plot_stochastic_results(stats_ds, points=None, region=None, coast=False, **kwargs)[source]#

Plot the (weighted) standard deviation (uncertainty) and mean of the stochastic ensemble. Optionally, plot points as well.

Parameters:
  • stats_ds (Dataset) – dataset with the merged inversion results, generated from function uncertainty.model_ensemble_stats.

  • points (DataFrame | None) – dataframe with points to plot, by default None

  • region (tuple[float, float, float, float] | None) – region to plot in format (xmin, xmax, ymin, ymax), by default None

  • coast (bool) – add coastline to plots, by default False

  • kwargs (Any)

Keyword Arguments:
  • cmap (str, optional) – colormap to use for the ensemble mean, by default β€œrain”

  • unit (str, optional) – unit of the data, by default β€œm”

  • reverse_cpt (bool, optional) – reverse the ensemble mean colormap, by default True

  • label (str, optional) – label for the colorbar, by default β€œensemble mean”

  • points_label (str, optional) – label for the points, by default None

  • fig_height (float, optional) – height of the figure, by default 12

Return type:

None