Drawing labels at proper positions.