Plot#

Utility for plot.

plot_bond(qtdraw, name, bond, rep=True)[source]#

Plot bond cluster.

Parameters:
  • qtdraw (QtDraw) – QtDraw object.

  • name (str) – cluster name.

  • bond (ndarray) – bond cluster.

  • rep (bool, optional) – highlight for 0th bond ?

plot_bond_samb(qtdraw, name, bond, samb, sym=True, label=None)[source]#

Plot bond-cluster SAMB.

Parameters:
  • qtdraw (QtDraw) – QtDraw object.

  • name (str) – SAMB name.

  • bond (ndarray) – bond cluster.

  • samb (ndarray) – bond-cluster samb.

  • sym (bool, optional) – symmetric bond ?

  • label (str, optional) – SAMB label.

plot_harmonics(qtdraw, name, samb, point=[[0, 0, 0]], label=None)[source]#

Plot harmonics.

Parameters:
  • qtdraw (QtDraw) – QtDraw object.

  • name (str) – SAMB name.

  • samb (sympy) – samb expression.

  • point (ndarray, optional) – center of harmonics.

  • label (str, optional) – SAMB label.

plot_site(qtdraw, name, site, rep=True)[source]#

Plot site cluster.

Parameters:
  • qtdraw (QtDraw) – QtDraw object.

  • name (str) – cluster name.

  • site (ndarray) – site cluster.

  • rep (bool, optional) – highlight for 0th site ?

plot_site_samb(qtdraw, name, site, samb, label=None)[source]#

Plot site-cluster SAMB.

Parameters:
  • qtdraw (QtDraw) – QtDraw object.

  • name (str) – SAMB name.

  • site (ndarray) – site cluster.

  • samb (ndarray) – site-cluster samb.

  • label (str, optional) – SAMB label.

plot_vector_samb(qtdraw, name, bond, samb, label=None)[source]#

Plot bond-cluster vector SAMB.

Parameters:
  • qtdraw (QtDraw) – QtDraw object.

  • name (str) – SAMB name.

  • bond (ndarray) – bond cluster.

  • samb (ndarray) – bond-cluster vector samb.

  • label (str, optional) – SAMB label.