Plot#

thermoengine.magmaforge.plot.magma_evolution(history: StateHistory, T_unit: str = 'C', T_lims: list[float] | None = None, title: str | None = None, phase_colors: dict | None = None)#

Plots the phase fractions and the liquid composition (one plot with all elements except SiO2 and one plot with just SiO2) as a function of temperature.

Parameters:
  • T_unit – the temperature unit to use on the x-axis; defaults to °C.

  • T_lims – the range of temperature values to plot; optional.

  • title – a title for the set of plots; optional.

thermoengine.magmaforge.plot.phase_fractions(history: StateHistory, ax=None, T_unit='C', phase_colors: dict | None = None)#

Plots the phase fractions as a function of temperature

Parameters:
  • ax – an axis object on which to plot; optional.

  • T_unit – the temperature unit to use on the x-axis; defaults to °C.