wulfric.PlotlyEngine.plot_cell#
method
- PlotlyEngine.plot_cell(cell, color='#000000', plot_vectors=True, vector_label='a', shift=(0, 0, 0), legend_label=None, legend_group=None, row=1, col=1)[source]#
Plots given
cellas is.- Parameters:
- cell(3, 3) array-like
Matrix of a cell, rows are interpreted as vectors.
- colorstr, default "#000000"
Colour for the cell and the labels. Any value that is supported by Plotly.
- plot_vectorsbool, default True
Whether to plot lattice vectors.
- vector_labelstr, default "a"
Vector's label, ignored if
plot_vectors = False.- shift(3, ) array-like, default (0.0, 0.0, 0.0)
Absolute coordinates of the corner of the cell, from which the three lattice vectors are plotted.
- 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.