invert4geom.plot_inversion_grav_results

invert4geom.plot_inversion_grav_results#

plot_inversion_grav_results(grav_results, region, constraints_df=None, fig_height=12, constraint_style='x.3c', epsg=None, coast=False)[source]#

plot the initial and final misfit grids from the inversion and their difference

Parameters:
  • grav_results (DataFrame) – resulting dataframe of gravity data from the inversion

  • region (tuple[float, float, float, float]) – region to use for gridding in format (xmin, xmax, ymin, ymax)

  • iterations (list[int]) – list of all the iteration numbers

  • constraints_df (DataFrame | None) – constraint points to include in the plots

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

  • constraint_style (str) – pygmt style string for for constraint points, by default ā€˜x.3c’

  • epsg (str | None) – EPSG code of the data if wanting to plot coastlines, by default None

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

Return type:

None