erlab.interactive.bzplot

Classes

BZPlotWidget(bvec)

BZPlotter([params, param_type, execute])

Interactive Brillouin zone plotter.

LatticeWidget(bvec)

class erlab.interactive.bzplot.BZPlotWidget(bvec)[source]

Bases: QWidget

set_bvec(bvec, update=True)[source]
class erlab.interactive.bzplot.BZPlotter(params=None, param_type=None, execute=True)[source]

Bases: QMainWindow

Interactive Brillouin zone plotter.

Parameters:
  • params (tuple[float, ...] | ndarray[Any, dtype[float64]] | None) – Input parameter for plotting. If param_type is ‘lattice’, it must be a 6-tuple containing the lengths a, b, c and angles alpha, beta, gamma. Otherwise, it must be a 3 by 3 numpy array with each row vector containing each real/reciprocal lattice vector. If not provided, a hexagonal lattice is shown by default.

  • param_type (Literal['lattice', 'avec', 'bvec'] | None) – Specifies the param_type of the input parameters. Valid param_types are 'lattice', 'avec', 'bvec'. By default, 'bvec' is assumed.

  • execute (bool) – If True, the Qapp instance will be executed immediately.

class erlab.interactive.bzplot.LatticeWidget(bvec)[source]

Bases: QTabWidget

avec_changed()[source]
block_params_signals(b)[source]
bvec_changed()[source]
latt_changed()[source]
set_avec(avec)[source]
set_bvec(bvec)[source]
set_latt(a, b, c, alpha, beta, gamma)[source]
property avec_val
property bvec_val
property latt_vals