radtools.PlotlyBackend.plot_unit_cell#
method
- PlotlyBackend.plot_unit_cell(lattice, vectors=True, color='#274DD1', label=None, conventional=False, reciprocal=False, normalize=False)[source]#
Plot real or reciprocal space unit cell.
- Parameters:
- lattice
Lattice Lattice to be plotted.
- 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.
- conventionalbool, default False
Whether to plot conventional cell. Affects result only for the Bravais lattice classes. Ignored for the general
Lattice. 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 corresponding vectors to have the volume equal to one.
- lattice