Visualization#
For the full technical reference see wulfric.PlotlyEngine.
Visualization in wulfric is implemented with Plotly.
Visualization backend#
First, one needs to create an instance of the plotting engine as
>>> import wulfric
>>> pe = wulfric.PlotlyEngine()
The creation of the plotting engine can take one optional argument: fig
>>> from plotly import graph_objects as go
>>> fig = go.Figure()
>>> pe = wulfric.PlotlyEngine(fig=fig)
After plotting the figure can be either displayed
>>> pe.show(width=1000, height=800)
or saved as an .html file
>>> pe.save(output_name="wulfric-plot.html", width=1000, height=800)
wulfric.PlotlyEngine has a number of methods that can be used to
plot the cell, atoms, lattice, and so on. Check the examples to get a feeling of
what is implemented.