Plotting and Saving#
- peridoxia.plotting_and_saving.plot_model_runs(model_run_dict: dict, aFe3O4_method: str = 'SG91', title: str = 'Empirical Model Runs', legend: str = 'upper_right', save_path=None)#
Plots \(logfO_{2}, ΔFFM\) vs pressure for multiple model runs. To plot data for a single run, use main.ModelRun.plot(), which additionally allows specification of any two variables.
- Parameters:
- model_run_dictdict
A dictionary of main.ModelRun objects
- aFe3O4_methodstr, optional
The activity model for calculating the activity of magnetite in spinel, by default ‘SG91’
‘SG91’: Sack and Ghiorso (1991ab); calculated via the ThermoEngine package (enki-portal.org)
‘NW91’: Nell and Wood (1991) as formulated in the appendix of Wood (1990; JGR)
- titlestr, optional
The title for the resulting plot, by default ‘Empirical Model Runs’
- legendstr, optional
The location for the legend, by default ‘upper_right’
Options are ‘upper_right’, ‘above_plot’, ‘below_plot’
- save_path_type_, optional
_description_, by default None
- Returns:
- fig, ax
The figure and axes
See also
main.ModelRun.plot
- peridoxia.plotting_and_saving.save_data_tables(model_run_obj_dict: dict, method: str = 'standard')#
Saves data tables for multiple model runs as sheets in an Excel file. To save a data table for a single run, use main.ModelRun.save_data_table().
- Parameters:
- model_run_obj_dictdict
A dictionary of main.ModelRun objects
- methodstr, optional
The level of output, by default ‘standard’
‘standard’ method returns P/T/fO2 and phase masses/oxide wt%.
‘compact’ method returns P/T/extensive endmembers. By default ‘standard’.
See also
main.ModelRun.save_data_table