invert4geom.plot_inversion_iteration_results

invert4geom.plot_inversion_iteration_results#

plot_inversion_iteration_results(grids, grav_results, updated_results, parameters, iterations, style, topo_cmap_perc=1, misfit_cmap_perc=1, corrections_cmap_perc=1, constraints_df=None, constraint_size=1)[source]#

plot the starting misfit, updated topography, and correction grids for a specified number of the iterations of an inversion

Parameters:
  • grids (tuple[list[DataArray], list[DataArray], list[DataArray]]) – list[xarray.DataArray]] lists of misfit, topography, and correction grids

  • grav_results (DataFrame) – gravity dataframe resulting from the inversion

  • updated_results (DataFrame) – updated topography or density values resulting from the inversion

  • parameters (dict[str, Any]) – inversion parameters resulting from the inversion

  • iterations (list[int]) – list of all the iteration numbers which occurred in the inversion

  • style (str) – inversion style, either β€˜geometry’ or β€˜density’

  • topo_cmap_perc (float) – value to multiply the max and min colorscale values by, by default 1

  • misfit_cmap_perc (float) – value to multiply the max and min colorscale values by, by default 1

  • corrections_cmap_perc (float) – value to multiply the max and min colorscale values by, by default 1

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

  • constraint_size (float) – size for constraint points, by default 1

Return type:

None