def _resolve_intervals_2dplot(val, func_name):
    """
    Helper function to replace the values of a coordinate array containing
    pd.Interval with their mid-points or - for pcolormesh - boundaries which
    increases length by 1.
    """
    label_extra = ''
    if _valid_other_type(val, [pd.Interval]):
        if func_name == 'pcolormesh':
            val = _interval_to_bound_points(val)
        else:
            val = _interval_to_mid_points(val)
            label_extra = '_center'

    return val, label_extra
def _resolve_intervals_2dplot ( val , func_name ) : label_extra = '' if _valid_other_type ( val , [ pd . Interval ] ) : if func_name == 'pcolormesh' : val = _interval_to_bound_points ( val ) else : val = _interval_to_mid_points ( val ) label_extra = '_center' return val , label_extra
Helper function to replace the values of a coordinate array containing
    pd.Interval with their mid-points or - for pcolormesh - boundaries which
    increases length by 1.