update halfdiagonal and diagonal labels position calculation