def symbol_size(values):
    """ Rescale given values to reasonable symbol sizes in the plot. """

    max_size = 50.0
    min_size = 5.0

    # Rescale max.
    slope = (max_size - min_size)/(values.max() - values.min())

    return slope*(values - values.max()) + max_size