Lattice#

Class#

Lattice(*args)

General 3D lattice.

Lattice parameters#

Real space#

Lattice.a1

First lattice vector \(\vec{a}_1\).

Lattice.a2

Second lattice vector \(\vec{a}_2\).

Lattice.a3

Third lattice vector \(\vec{a}_3\).

Lattice.cell

Unit cell of the lattice.

Lattice.unit_cell_volume

Volume of the unit cell.

Lattice.a

Length of the first lattice vector \(\vert\vec{a}_1\vert\).

Lattice.b

Length of the second lattice vector \(\vert\vec{a}_2\vert\).

Lattice.c

Length of the third lattice vector \(\vert\vec{a}_3\vert\).

Lattice.alpha

Angle between second and third lattice vector.

Lattice.beta

Angle between first and third lattice vector.

Lattice.gamma

Angle between first and second lattice vector.

Lattice.parameters

Return cell parameters.

Reciprocal space#

Lattice.b1

First reciprocal lattice vector.

Lattice.b2

Second reciprocal lattice vector.

Lattice.b3

Third reciprocal lattice vector.

Lattice.reciprocal_cell

Reciprocal cell.

Lattice.reciprocal_cell_volume

Volume of the reciprocal cell.

Lattice.k_a

Length of the first reciprocal lattice vector \(\vert\vec{b}_1\vert\).

Lattice.k_b

Length of the second reciprocal lattice vector \(\vert\vec{b}_2\vert\).

Lattice.k_c

Length of the third reciprocal lattice vector \(\vert\vec{b}_3\vert\).

Lattice.k_alpha

Angle between second and third reciprocal lattice vector.

Lattice.k_beta

Angle between first and third reciprocal lattice vector.

Lattice.k_gamma

Angle between first and second reciprocal lattice vector.

Lattice.parameters

Return cell parameters.

Lattice.path

K-point path.

Information properties#

Lattice.variation

Variation of the lattice, if any.

Lattice.pearson_symbol

Pearson symbol.

Lattice.centring_type

Centring type.

Lattice.crystal_family

Crystal family.

Plotting#

Lattice.plot([kind, ax])

Main plotting function of the Lattice.

Lattice.legend(**kwargs)

Add legend to the figure.

Lattice.remove([kind, ax])

Remove a set of artists from the plot.

Lattice.savefig([output_name, elev, azim])

Save the figure in the file

Lattice.show([elev, azim])

Show the figure in the interactive matplotlib window.

Lattice.clear()

Clear the axis.