def get_min_max(val, height):
    """
    Get the min value and max value of a horizontal slice of a bar
    plot that is used for visualization purposes when various bars
    overlap.
    Args:
        val (float): value of the ROCE
        height (float): height of the horizontal slice
    Returns:
        mini (float): min value
        maxi (float): max value
    """

    mini = val - height / 2
    maxi = val + height / 2
    return mini, maxi