plot.plot_interaction

plot.plot_interaction(dbf, comps, phase_name, configuration, output, datasets=None, symmetry=None, ax=None, plot_kwargs=None, dataplot_kwargs=None)

Return one set of plotted Axes with data compared to calculated parameters

Parameters

Name Type Description Default
dbf Database pycalphad thermodynamic database containing the relevant parameters. required
comps Sequence[str] Names of components to consider in the calculation. required
phase_name str Name of the considered phase phase required
configuration Tuple[Tuple[str]] ESPEI-style configuration required
output str Model property to plot on the y-axis e.g. 'HM_MIX', or 'SM_MIX'. Must be a '_MIX' property. required
datasets tinydb.TinyDB None
symmetry list List of lists containing indices of symmetric sublattices e.g. [[0, 1], [2, 3]] None
ax plt.Axes Default axes used if not specified. None
plot_kwargs Optional[Dict[str, Any]] Keyword arguments to ax.plot for the predicted data. None
dataplot_kwargs Optional[Dict[str, Any]] Keyword arguments to ax.plot the observed data. None

Returns

Type Description
plt.Axes
Back to top