def METHOD_NAME(
    self, facet: Facet, ratio: float, parts: WHSpaceParts
) -> TightParams:
    """
    Reduce the width of axes to get the aspect ratio
    """
    params = deepcopy(self)
    spaces = params.spaces
    grid = params.grid
    # New width w.r.t figure width
    w1 = (parts.h * parts.H) / (ratio * parts.W)
    # Half of the total horizontal reduction w.r.t figure width
    dw = (parts.w - w1) * facet.ncol / 2
    # Reduce width
    grid.left += dw
    grid.right -= dw
    grid.wspace = parts.sw / w1
    # Add more horizontal margin
    spaces.l.plot_margin += dw
    spaces.r.plot_margin += dw
    return params