def figsize(relwidth=1, aspect=.618, refwidth=6.5):
    """
    Return figure dimensions from a relative width (to a reference width) and
    aspect ratio (default: 1/golden ratio).

    """
    width = relwidth * refwidth

    return width, width*aspect