wulfric.visualization.MatplotlibBackend.plot_unit_cell#
method
- visualization.MatplotlibBackend.plot_unit_cell(cell, vectors=True, color='#274DD1', label=None, vector_pad=1.1, 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 format supported by matplotlib (see matplotlib colors).
- labelstr, optional
Label for the plot.
- vector_padfloat, default 1.1
Multiplier for the position of the vectors labels. 1 = position of the vector.
- 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.