화살표로 원형 다이어그램 그리기

화살표로 원형 다이어그램 그리기

LaTeX에서 화살표가 있는 원형 다이어그램을 어떻게 그릴 수 있습니까(그림 참조)?

여기에 이미지 설명을 입력하세요

답변1

세 개의 호는 처음에 원으로 그려질 수 있으며, 그 다음 레이블은 흰색 배경 위에 그려질 수 있습니다. 라이브러리 decorations는 화살표와 같은 경로에 모든 종류의 표시를 배치하는 데 사용할 수 있습니다. 불행히도 약간 장황합니다.

\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc, arrows, decorations.markings}
\begin{document}

\begin{tikzpicture}[decoration = {markings,
    mark = between positions 0.1 and 1 step 0.3333 with {\arrow[>=stealth]{<}}
  }
  ]
  \draw[postaction = decorate] (0, 0) circle [radius = 1cm];
  \path (90 :1cm) node[fill=white]{$\hat{x}$}
        (330:1cm) node[fill=white]{$\hat{y}$}
        (210:1cm) node[fill=white]{$\hat{z}$};
\end{tikzpicture}

\end{document}

여기에 이미지 설명을 입력하세요

또 다른 옵션은 다음과 같습니다.

\begin{tikzpicture}[decoration = {markings,
    mark = at position 0.5 with {\arrow[>=stealth]{>}}
  }
  ]
  \path (90 :1cm) node (x) {$\hat{x}$}
        (330:1cm) node (y) {$\hat{y}$}
        (210:1cm) node (z) {$\hat{z}$};
  \draw[postaction = decorate] (x) to[bend left=45] (y);
  \draw[postaction = decorate] (y) to[bend left=45] (z);
  \draw[postaction = decorate] (z) to[bend left=45] (x);
\end{tikzpicture}

비슷한 출력으로:

여기에 이미지 설명을 입력하세요

관련 정보