Band structure
There are some functions for quick peeks of band structures.
Contents
Index
WannierPlots._get_band_plotWannierPlots._merge_consecutive_labelsWannierPlots.plot_bandWannierPlots.plot_bandWannierPlots.plot_band_diff
API
WannierPlots._get_band_plot — Method_get_band_plot(
x::AbstractVector{T},
E::AbstractArray{T};
fermi_energy::Union{Nothing,T}=nothing,
shift_fermi::Bool=false,
symm_idx::Union{Nothing,AbstractArray{Int}}=nothing,
symm_label::Union{Nothing,AbstractVector{String}}=nothing,
color="black",
kwargs...,
) where {T<:Real}Return a PlotlyJS Plot struct for the band structure.
Arguments
x: 1D array for x axisE: band energies, 1D of lengthn_kpts, or 2D array of sizen_bands * n_kpts
Keyword Arguments
fermi_energy: Fermi energy, will draw a horizontal lineshift_fermi: shift the Fermi energy to 0symm_idx: indices of high-symmetry kpointssymm_label: labels of high-symmetry kpointscolor: color of the bandkwargs: additional keyword arguments for PlotlyJS, thelineattribute ofscatter. For a full customization, directly manipulate the returnedPlotstruct. See PlotlyJS documentation.
WannierPlots._merge_consecutive_labels — Method_merge_consecutive_labels(
symm_idx::AbstractArray{Int}, symm_label::AbstractVector{String}
)Merge consecutive high-symmetry points.
If two high-symmetry kpoints are neighbors, merge them into one, with label X|Y, where X and Y are the original labels of the two kpoints, respectively.
Arguments
symm_idx: indices of high-symmetry kpoints, start from 1symm_label: labels of high-symmetry kpoints
WannierPlots.plot_band — Methodplot_band(x::AbstractVector, E::AbstractArray; kwargs...)Plot band structure.
Arguments
x: 1D array for x axisE: band energies, 1D of lengthn_kpts, or 2D array of sizen_bands * n_kpts
Keyword Arguments
See also the keyword arguments of _get_band_plot.
WannierPlots.plot_band — Methodplot_band(kpi::KPathInterpolant, E::AbstractArray; kwargs...)Plot band structure.
Arguments
kpi: KPathInterpolantE: band energies, 1D of lengthn_kpts, or 2D array of sizen_bands * n_kpts
Keyword Arguments
See also the keyword arguments of _get_band_plot.
WannierPlots.plot_band_diff — Methodplot_band_diff(kpi::KPathInterpolant, E1::AbstractArray, E22::AbstractArray; kwargs...)Compare two band structures.
E1 in black, while E2 in dashed orange.
Arguments
kpi: KPathInterpolantE1: band energies, 1D of lengthn_kpts, or 2D array of sizen_bands * n_kptsE2: band energies, 1D of lengthn_kpts, or 2D array of sizen_bands * n_kpts
Keyword Arguments
See also the keyword arguments of _get_band_plot.