code: def make_spiral(
      num_points=100,
      num_turns=4,
      height=12,
      radius=2.0,
      xnot=None,
      ynot=None,
      znot=None,
  ):
      """
      Generate a list of points corresponding to a spiral.
  
      Parameters
      ----------
      num_points : int
          Number of points to map spiral over. More points means a
          rounder spring.
      num_turns : int
          Number of coils in the spiral
      height : float
          The height of the spiral. Keep it in whatever units the rest of the
          spiral is in.
      radius : float
          The radius of the coils. The spiral will end up being 2*radius wide.
      xnot : float
          Initial x-coordinate for the spiral coordinates to start at.
      ynot : float
          Initial y-coordinate for the spiral coordinates to start at.
      znot : float
          Initial z-coordinate for the spiral coordinates to start at.
  
      Returns
      -------
      coord_list: list of tuples
          Coordinate list of (x, y, z) positions for the spiral
  
      Notes
      -----
      Right now, this assumes the center is at x=0, y=0. Later, it might be
      good to add in stuff to change that.
  
      """
  
      coords_list = []
      znot = -4 if znot is None else znot
      xnot = radius if xnot is None else xnot
      ynot = 0 if ynot is None else ynot
  
      theta_not = np.arctan2(ynot, xnot)
  
      coords_list.append((xnot, ynot, znot))
  
      for point in range(num_points):
          znot += height / num_points
          theta_not += 2 * np.pi * num_turns / num_points
          xnot = np.cos(theta_not) * radius
          ynot = np.sin(theta_not) * radius
          coords_list.append((xnot, ynot, znot))
      return coords_list
  
imports: from __future__ import division, print_function, absolute_import
  from vispy import app, visuals
  from vispy.visuals import transforms
  from vispy.io import load_data_file
  import sys
  import numpy
  import string
  import logging
  import traceback
  from PyQt5 import QtCore, QtGui, QtWidgets
label_desc: Use image node_id 1 for calling a global function with example usage: make_spiral(num_points, num_turns, height, radius, xnot, ynot, znot) and returns: coords_list