infer_notation_for_one_label function

Infer the notation from one row or column label