wulfric.visualization.PlotlyBackend.plot_unit_cell#

method

visualization.PlotlyBackend.plot_unit_cell(cell, vectors=True, color='#274DD1', label=None, conventional=False, reciprocal=False, normalize=False)#

Plots real or reciprocal unit cell.

Parameters:
cell(3, 3) array-like

Matrix of a cell, rows are interpreted as vectors.

vectorsbool, default True

Whether to plot lattice vectors.

colorstr, default "#274DD1"

Colour for the plot. Any value supported Plotly.

labelstr, optional

Label for the plot.

conventionalbool, default False

Whether to plot conventional cell. Only primitive unit cell is supported for reciprocal space.

reciprocalbool, default False

Whether to plot reciprocal or real unit cell.

normalizebool, default False

Whether to normalize volume of the cell to one.