code: def plot(points, ax=None, permutation=None, **kwargs):
      """
      Analogous to maplotlib.plot. Plots trajectory points where each point is a
      tuple (x,y,z) satisfying x + y + z = scale (not checked). The tuples are
      projected and plotted as a curve.
  
      Parameters
      ----------
      points: List of 3-tuples
          The list of tuples to be plotted as a connected curve.
      ax: Matplotlib AxesSubplot, None
          The subplot to draw on.
      kwargs:
          Any kwargs to pass through to matplotlib.
      """
      if not ax:
          fig, ax = plt.subplots()
      xs, ys = project_sequence(points, permutation=permutation)
      ax.plot(xs, ys, **kwargs)
      return ax
  
file_path: python-ternary/ternary/plotting.py
imports: import matplotlib
  from matplotlib import pyplot
  import numpy
  from .helpers import project_sequence
  from .colormapping import get_cmap, colorbar_hack
label_desc: Use image node_id 3 for calling a global function with example usage: plot(points, ax, permutation) and returns: ax