code: def scatter(
      points,
      ax=None,
      permutation=None,
      colorbar=False,
      colormap=None,
      vmin=0,
      vmax=1,
      scientific=False,
      cbarlabel=None,
      cb_kwargs=None,
      **kwargs,
  ):
      """
      Plots trajectory points where each point satisfies x + y + z = scale.
      First argument is a list or numpy array of tuples of length 3.
  
      Parameters
      ----------
      points: List of 3-tuples
          The list of tuples to be scatter-plotted.
      ax: Matplotlib AxesSubplot, None
          The subplot to draw on.
      colorbar: bool, False
          Show colorbar.
      colormap: String or matplotlib.colors.Colormap, None
          The name of the Matplotlib colormap to use.
      vmin: int, 0
          Minimum value for colorbar.
      vmax: int, 1
          Maximum value for colorbar.
      cb_kwargs: dict
          Any additional kwargs to pass to colorbar
      kwargs:
          Any kwargs to pass through to matplotlib.
      """
      if not ax:
          fig, ax = plt.subplots()
      xs, ys = project_sequence(points, permutation=permutation)
      ax.scatter(xs, ys, vmin=vmin, vmax=vmax, **kwargs)
  
      if colorbar and (colormap != None):
          if cb_kwargs != None:
              colorbar_hack(
                  ax,
                  vmin,
                  vmax,
                  colormap,
                  scientific=scientific,
                  cbarlabel=cbarlabel,
                  **cb_kwargs,
              )
          else:
              colorbar_hack(
                  ax,
                  vmin,
                  vmax,
                  colormap,
                  scientific=scientific,
                  cbarlabel=cbarlabel,
              )
  
      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 5 for calling a global function with example usage: scatter(points, ax, permutation, colorbar, colormap, vmin, vmax, scientific, cbarlabel, cb_kwargs) and returns: ax