繪製帶有箭頭的圓形圖

繪製帶有箭頭的圓形圖

如何在 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}

具有類似的輸出:

在此輸入影像描述

相關內容