surfinpy.plotting¶
- class surfinpy.plotting.ChemicalPotentialPlot(x, y, z, labels, ticks, colors, xlabel, ylabel)[source]¶
Bases:
object
Class that plots a phase diagram as a function of chemical potential.
- Parameters
x (
array_like
) – x axis, chemical potential of species xy (
array_like
) – y axis, chemical potential of species yz (
array_like
) – two dimensional grid, phase infolabels (
list
) –list
): of phase labelsticks (
list
) –list
): of phasescolors (
list
) –list
): of phasesxlabel (
str
) – species name for x axis labelylabel (
str
) – species name for y axis label
- plot_mu_p(temperature, colourmap=None, set_style=None, cbar_title=None, figsize=(6, 6))[source]¶
Plots a phase diagram with two sets of axis, one as a function of chemical potential and the second is as a function of pressure.
- Parameters
temperature (
int
) – temperaturecolourmap (
str
) – colourmap for the plotset_style (
str
) – Plot stylecbar_label (
str
) – Label for colorbar
- plot_phase(temperature=None, colourmap=None, set_style=None, figsize=None, cbar_title=None)[source]¶
Plots a simple phase diagram as a function of chemical potential.
- Parameters
temperature (
int
) – Temperature.colourmap (
str
) – Colourmap for the plot.set_style (
str
) – Plot stylefigsize (
tuple
) – Set a custom figure size.
- class surfinpy.plotting.MuTPlot(x, y, z, labels, ticks, colors, xlabel, ylabel)[source]¶
Bases:
object
Class that plots a phase diagram as a function of chemical potential and temperature.
- Parameters
x (
array_like
) – x axis, chemical potential of species xy (
array_like
) – y axis, chemical potential of species yz (
array_like
) – two dimensional grid, phase infolabels (
list
) –list
): of phase labelsticks (
list
) –list
): of phasescolors (
list
) –list
): of phasesxlabel (
str
) – species name for x axis labelylabel (
str
) – species name for y axis label
- plot_mu_vs_t(colourmap=None, set_style=None, figsize=(6, 6), cbar_title=None)[source]¶
Plots a simple phase diagram as a function of chemical potential.
- Parameters
colourmap (
str
) – Colourmap for the plot. Default=’viridis’set_style (
str
) – Plot stylefigsize (
tuple
) – Set a custom figure size.
- plot_mu_vs_t_vs_p(temperature, colourmap=None, set_style=None, figsize=(6, 6), cbar_title=None)[source]¶
Plots a simple phase diagram as a function of chemical potential.
- Parameters
temperature (
int
) – Temperature.colourmap (
str
) – Colourmap for the plot. Default=’viridis’set_style (
str
) – Plot stylefigsize (
tuple
) – Set a custom figure size.
- plot_p_vs_t(temperature, colourmap=None, set_style=None, figsize=(6, 6), cbar_title=None)[source]¶
Plots a simple phase diagram as a function of chemical potential.
- Parameters
temperature (
int
) – Temperature.colourmap (
str
) – Colourmap for the plot. Default=’viridis’set_style (
str
) – Plot stylefigsize (
tuple
) – Set a custom figure size.