code: def _get_coords(data, replace=None, mask=None):
      """replace one coordiate axis in a 3-D data set with 'data values'
      (i.e. replace an 'x' axis with the 'y' values of the data)
  
      data -- dataset object, where coordinates are 3-tuples and values are floats
      replace -- selected axis (an int) to plot values NOT coords
      """
      slope = data.lipschitz
      coords = data.coords
      values = data.values
      if mask in range(len(slope)):
          coords = [swap(pt, mask) for pt in coords]
      if replace not in range(len(slope)):  # don't replace an axis
          return coords
      return [
          list(coords[i][:replace])
          + [values[i]]
          + list(coords[i][replace + 1 :])
          for i in range(len(coords))
      ]
  
file_path: mystic/mystic/support.py
label_desc: Use image node_id 9 for calling a global function with example usage: _get_coords(data, replace, mask) and returns: unknown, coords