wulfric.Kpoints.xlims#

method

Kpoints.xlims(relative=False)[source]#

Limits of the x axis for the band/dispersion plots.

Added in version 0.7.2.

Parameters:
relativebool, default False

Whether to use relative coordinates instead of the absolute ones.

Returns:
leftfloat

The left xlimit in the .Kpoints.flat_points() coordinates.

rightfloat

The right xlimit in the .Kpoints.flat_points() coordinates.

Notes

Equivalent to

(kp.ticks()[0], kp.ticks()[-1])

Can be passed to the matplotlib as

ax.set_xlim(*kp.xlims())