def METHOD_NAME(
    self, facet: Facet, ratio: float, parts: WHSpaceParts
) -> TightParams:
    """
    Reduce the height of axes to get the aspect ratio
    """
    params = deepcopy(self)
    spaces = params.spaces
    grid = params.grid
    # New height w.r.t figure height
    h1 = ratio * parts.w * (parts.W / parts.H)
    # Half of the total vertical reduction w.r.t figure height
    dh = (parts.h - h1) * facet.nrow / 2
    # Reduce plot area height
    grid.top -= dh
    grid.bottom += dh
    grid.hspace = parts.sh / h1
    # Add more vertical plot margin
    spaces.t.plot_margin += dh
    spaces.b.plot_margin += dh
    return params