vmd.graphics.line

vmd.graphics.line()

Draw a line between the given vertices

Parameters:
  • molid (int) – Molecule ID to draw on
  • v1 (3-tuple of float) – (x,y,z) coordinates of first vertex
  • v2 (3-tuple of float) – (x,y,z) coordinates of second vertex
  • style (str) – Either ‘solid’ or ‘dashed’. Defaults to solid line
  • width (int) – Width of line. Defaults to 1
Returns:

(int) – ID of drawn line