MatplotlibBackend#

Class#

MatplotlibBackend([fig, ax, background, ...])

Plotting engine for the lattice with matplotlib.

Plotting#

MatplotlibBackend.plot(lattice[, kind])

Main plotting function of the Lattice.

MatplotlibBackend.plot_unit_cell(lattice[, ...])

Plot real or reciprocal space unit cell.

MatplotlibBackend.plot_wigner_seitz(lattice)

Plot Wigner-Seitz unit cell.

MatplotlibBackend.plot_kpath(lattice[, ...])

Plot k path in the reciprocal space.

Save and show#

MatplotlibBackend.save([output_name, elev, azim])

Save the figure in the file.

MatplotlibBackend.show([elev, azim])

Show the figure in the interactive mode.

Service functions#

MatplotlibBackend.remove([kind])

Remove a set of artists from the plot.

MatplotlibBackend.clear()

Clear the axis.

MatplotlibBackend.legend(**kwargs)

Add legend to the figure.