def get_bounds(results):
    """Get upper and lower bounds for 2D plot."""
    max_val = max(max(results[1][0]), max(results[1][1]))
    min_val = min(min(results[1][0]), min(results[1][1]))
    bound = max(abs(max_val), abs(min_val))
    pad = bound/5
    return [-bound - pad, bound + pad]