wulfric.PlotlyEngine.plot_wigner_seitz_cell#

method

PlotlyEngine.plot_wigner_seitz_cell(cell, plot_vectors=True, vector_label='a', color='#000000', shift=(0.0, 0.0, 0.0), legend_label=None, legend_group=None, row=1, col=1)[source]#

Plots Wigner-Seitz cell of the lattice spawned by the given cell.

Parameters:
cell(3, 3) array-like

Matrix of a cell, rows are interpreted as vectors.

plot_vectorsbool, default True

Whether to plot lattice vectors.

vector_labelstr, default "a"

Vector's label, ignored if plot_vectors = False.

colorstr, default "#000000"

Colour for the cell and labels. Any value that is supported by Plotly.

shift(3, ) array-like, default (0.0, 0.0, 0.0)

Absolute coordinates of the center of the Wigner-Seitz cell.

legend_labelstr, optional

Label for the legend. Entry in legend only showed if legend_label is not None.

legend_groupstr, optional

Legend's group. If None, then defaults to the random string of 10 characters.

rowint, default 1

Row of the subplot.

colint, default 1

Column of the subplot.