landau.plot

landau.plot.plot_1d_T_phase_diagram(df, ax=None, mark_transitions=True, show=True, reference_phase=None, top_labels=True, side_labels=True)[source]

Plots a one-dimensional equipotential phase diagram as a function of temperature.

Parameters:
  • df (pandas.DataFrame) – Input data containing columns for temperature (‘T’), semi-grandcanonical potential (‘phi’), phase name (‘phase’), and optionally a ‘border’ column indicating phase transition.

  • ax (matplotlib.axes.Axes, optional) – Existing matplotlib Axes to plot on. If None, a new figure and axes are created.

  • mark_transitions (bool, optional) – If True, all transition temperatures are marked on the plot. Defaults to True.

  • reference_phase (str, optional) – If given, subtract this phase’s potential from all other phases before plotting so that the reference phase lies at zero throughout.

  • top_labels (bool, optional) – If True, label the stable phase of each segment near the top of the axis. Defaults to True.

  • side_labels (bool, optional) – If True, remove the default seaborn legend and label every phase at the right end of its line instead. Defaults to True.

Returns:

The Axes object with the phase diagram plot.

Return type:

matplotlib.axes.Axes

landau.plot.plot_1d_mu_phase_diagram(df, ax=None, show=True, mark_transitions=True, reference_phase=None, top_labels=True, side_labels=True)[source]

Plot a one dimensional isothermal phase diagram of the semi-grandcanonical potential as function of the chemical potential difference.

Parameters:
  • df (pandas.DataFrame) – Input data containing columns for chemical potential difference (‘mu’), semi-grandcanonical potential (‘phi’), phase name (‘phase’), stability (‘stable’), and optionally a ‘border’ column indicating phase transition.

  • ax (matplotlib.axes.Axes, optional) – Existing matplotlib Axes to plot on. If None, a new figure and axes are created.

  • mark_transitions (bool, optional) – If True, all transition temperatures are marked on the plot. Defaults to True.

  • reference_phase (str, optional) – If given, subtract this phase’s potential from all other phases before plotting so that the reference phase lies at zero throughout.

  • top_labels (bool, optional) – If True, label the stable phase of each segment near the top of the axis. Defaults to True.

  • side_labels (bool, optional) – If True, remove the default seaborn legend and label every phase at the right end of its line instead. Defaults to True.

Returns:

The Axes object with the phase diagram plot.

Return type:

matplotlib.axes.Axes

landau.plot.plot_mu_phase_diagram(df, alpha=0.1, element=None, color_override={}, poly_method=None, ax=None)[source]
landau.plot.plot_phase_diagram(df, alpha=0.1, element=None, min_c_width=0.01, color_override={}, tielines=False, poly_method=None, variables=None, ax=None)[source]