code: def svg_polygon(coordinates, color):
      """
      Create an svg triangle for the stationary heatmap.
  
      Parameters
      ----------
      coordinates: list
          The coordinates defining the polygon
      color: string
          RGB color value e.g. #26ffd1
  
      Returns
      -------
      string, the svg string for the polygon
      """
  
      coord_str = []
      for c in coordinates:
          coord_str.append(",".join(map(str, c)))
      coord_str = " ".join(coord_str)
      polygon = (
          '<polygon points="%s" style="fill:%s;stroke:%s;stroke-width:0"/>\n'
          % (coord_str, color, color)
      )
      return polygon
  
file_path: python-ternary/ternary/heatmapping.py
imports: import functools
  import numpy
  from matplotlib import pyplot
  from .helpers import unzip, normalize, simplex_iterator, permute_point, project_point
  from .colormapping import get_cmap, colormapper, colorbar_hack
label_desc: Use image node_id 10 for calling a global function with example usage: svg_polygon(coordinates, color) and returns: polygon