code: def figure(ax=None, scale=None, permutation=None):
      
  
      ternary_ax = TernaryAxesSubplot(ax=ax, scale=scale, permutation=permutation)
      return ternary_ax.get_figure(), ternary_ax
docs: Wraps a Matplotlib AxesSubplot or generates a new one. Emulates matplotlib's
      > figure, ax = pyplot.subplots()
  
      Parameters
      ----------
      ax: AxesSubplot, None
          The matplotlib AxesSubplot to wrap
      scale: float, None
          The scale factor of the ternary plot