def resize_drawing_canvas(ax, scale=1.0, angle=0.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.
    """
    if angle == 0:
        ax.set_ylim((-0.1 * scale, 0.9 * scale))
        ax.set_xlim((-0.05 * scale, 1.05 * scale))
    else:
        ax.set_ylim((-0.95 * scale, 0.2 * scale))
        ax.set_xlim((-0.1 * scale, 1.1 * scale))
