def set_size(width, fraction=1):
    """ Set aesthetic figure dimensions to avoid scaling in latex.

    :param float width: Width in pts
    :param float fraction:Fraction of the width which you wish the figure to occupy

    :return fig_dim: Dimensions of figure in inches
    :rtype: Tuple[float, float]
    """
    fig_width_pt = width * fraction
    inches_per_pt = 1 / 72.27
    golden_ratio = (5 ** 0.5 - 1) / 2
    fig_width_in = fig_width_pt * inches_per_pt
    fig_height_in = fig_width_in * golden_ratio
    return (fig_width_in, fig_height_in)