Plotting
plot_dos(result: DOSResult, *, ef: float = 0.0, components: list[int] | None = None, system_total: bool = True, spin: str | None = None, orbitals: list[str] | None = None, energy_unit: str = 'Ry', figsize: tuple[float, float] = (3.4, 2.6)) -> Figure
Plot density of states curves.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
DOSResult
|
Parsed DOS result. |
required |
|
float
|
Fermi energy in Ry, subtracted from the energy axis. |
0.0
|
|
list[int] | None
|
Component indices to plot. Defaults to all components. |
None
|
|
bool
|
Add the total system DOS on top of the component curves. |
True
|
|
str | None
|
Spin channel to plot — |
None
|
|
list[str] | None
|
Which orbital DOS to include, any subset of
|
None
|
|
str
|
|
'Ry'
|
|
tuple[float, float]
|
Matplotlib figure size |
(3.4, 2.6)
|
Returns:
| Type | Description |
|---|---|
Figure
|
The populated Matplotlib figure. |
plot_convergence(result: GOResult, *, field: str = 'rms_error', figsize: tuple[float, float] = (3.4, 2.6)) -> Figure
Plot GO convergence history.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
GOResult
|
Parsed GO result. |
required |
|
str
|
Which iteration field to plot — |
'rms_error'
|
|
tuple[float, float]
|
Matplotlib figure size |
(3.4, 2.6)
|
Returns:
| Type | Description |
|---|---|
Figure
|
The populated Matplotlib figure. |
plot_bsf(result: SPCResult, *, spin: str | None = None, ef: float = 0.0, energy_unit: str = 'Ry', cmap: str = 'YlGnBu', vmax: float | None = None, figsize: tuple[float, float] | None = None) -> Figure
Plot the Bloch spectral function (BSF) as a k-path heatmap.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
SPCResult
|
Parsed SPC result. |
required |
|
str | None
|
Spin channel to plot — |
None
|
|
float
|
Fermi energy in Ry, subtracted from the energy axis. |
0.0
|
|
str
|
|
'Ry'
|
|
str
|
Matplotlib colormap name for the BSF intensity heatmap. |
'YlGnBu'
|
|
float | None
|
Upper color-scale bound. Defaults to the 99.5th percentile of the intensity data when not given, so a few bright outlier pixels don't wash out the contrast. |
None
|
|
tuple[float, float] | None
|
Matplotlib figure size |
None
|
Returns:
| Type | Description |
|---|---|
Figure
|
The populated Matplotlib figure. A placeholder figure is returned |
Figure
|
(instead of raising) when the requested channel's spectral data is |
Figure
|
unavailable or its k-path was not computed. |