code: def resize_drawing_canvas(ax, scale=1.0):
      """
      Makes sure the drawing surface is large enough to display projected
      content.
  
      Parameters
      ----------
      ax: Matplotlib AxesSubplot, None
          The subplot to draw on.
      scale: float, 1.0
          Simplex scale size.
      """
      ax.set_ylim((-0.10 * scale, 0.90 * scale))
      ax.set_xlim((-0.05 * scale, 1.05 * scale))
  
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 1 for calling a global function with example usage: resize_drawing_canvas(ax, scale) without return types