helix.plot_structure#

helix.plot_structure(point_size=12, type_colors=None, sphere=True, parallel_proj=True, draw_bonds=False, max_bond_dist=2.0)#

Render the atomic structure in 3D using PyVista.

Parameters:
  • Pos (ndarray) – Atom positions.

  • Types (ndarray) – Atom type ids.

  • Lims (list, optional) – Box limits for drawing the simulation cell.

  • point_size (int, optional) – Size of rendered atoms.

  • type_colors (dict, optional) – Mapping from type id to display color.

  • sphere (bool, optional) – Render atoms as spheres when True.

  • parallel_proj (bool, optional) – Use parallel projection.

  • draw_bonds (bool, optional) – Draw bonds between unlike atom types.

  • max_bond_dist (float, optional) – Distance cutoff used for bond drawing.