wulfric.visualization.PlotlyBackend#

class wulfric.visualization.PlotlyBackend(fig=None)[source]#

Plotting engine based on Plotly.

Parameters:
figplotly graph object

Figure to plot on. If not provided, a new figure is created.

Attributes:
figplotly graph object

Figure to plot on.

Notes

This class is a part of wulfric[visual]

Methods:

clear(*args, **kwargs)

legend(*args, **kwargs)

plot(*args, kind, **kwargs)

Main plotting method.

plot_brillouin(*args[, color])

Plot brillouin zone.

plot_brillouin_kpath(*args[, zone_color, ...])

Plot brillouin zone and kpath.

plot_conventional(*args, **kwargs)

Plot conventional unit cell.

plot_kpath(cell[, color, label, normalize])

Plots k path in the reciprocal space.

plot_primitive(*args, **kwargs)

Plot primitive unit cell.

plot_unit_cell(cell[, vectors, color, ...])

Plots real or reciprocal unit cell.

plot_wigner_seitz(cell[, vectors, label, ...])

Plots Wigner-Seitz cell.

remove(*args, **kwargs)

save([output_name, kwargs_update_layout, ...])

Saves the figure in the html file.

show([axes_visible])

Shows the figure in the interactive mode.