surfinpy.chemical_potential_plot¶
This module is designed to generate a phase diagram as a function of chemical potential.
-
class
surfinpy.chemical_potential_plot.
ChemicalPotentialPlot
(x, y, z, labels, ticks, 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 x
- y (array like) – y axis, chemical potential of species y
- z (array like) – two dimensional grid, phase info
- labels (list) – list of phase labels
- ticks (list) – list of phases
- xlabel (str) – x axis label
- ylabel (str) – y axis label
-
plot_mu_p
(temperature, output='phase.png', colourmap='viridis', set_style='default')[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 (optional)) – temperature
- output (str (optional)) – output filename
- colourmap (str) – colourmap for the plot
-
plot_phase
(temperature=0, output='phase.png', colourmap='viridis', set_style='default')[source]¶ Plots a simple phase diagram as a function of chemical potential.
Parameters: - temperature (int (optional)) – temperature
- output (str (optional)) – output filename
- colourmap (str) – colourmap for the plot