def manuscript_sizes(denominator=1, text_width=5.5):
    """
    Figure sizes according to document textwidth.

    Arguments:
        denominator (int): denominator used in the document
        text_width (float): inches of document textwidth
    """

    fig_width = text_width/denominator - (denominator-1)*0.01

    golden_mean = 0.6180339887498949  # Aesthetic ratio (sqrt(5)-1.0)/2.0
    fig_height = fig_width * golden_mean  # height in inches

    return fig_width, fig_height