magnopy.experimental.plot_spinham#

magnopy.experimental.plot_spinham(spinham: SpinHamiltonian, distance_digits=5, plot_dmi=True, dmi_vectors_scale=1, _sphinx_gallery_fix=False)[source]#

Visualizes spin Hamiltonian.

Warning

Experimental feature. Only 1, 21, 22 parameters are implemented.

Added in version 0.2.0.

Parameters:
spinhamSpinHamiltonian

Spin Hamiltonian

distance_digitsint, default 5

Precision for comparing two linear distances.

plot_dmibool, default True

Whether to plot DMI vectors

dmi_scalefloat, default 1.0

Scale for the maximum dmi vector length.

Returns:
pe1PlotlyEngine

Instance of the magnopy's plot engine, with plotted spin Hamiltonian. Ready to be saved or showed. Only on-site parameters are plotted

pe2PlotlyEngine

Instance of the magnopy's plot engine, with plotted spin Hamiltonian. Ready to be saved or showed. Only two-spins/two-sites parameters are plotted.