有 32 个节点的圆圈

有 32 个节点的圆圈

在此处输入图片描述

描述图表的内容 - 每个步骤都有一个更大的圆圈 - 每个大圆圈有 32 个节点 - 箭头指示移动绳索的方向

我已经安装了 LatTex,所以我需要什么插件来实现这一点?

任何帮助都将非常感谢!

答案1

你应该熟悉 TiZ.您可以使用下面的代码作为起点。

\documentclass[tikz,border=5mm]{standalone}

\makeatletter
\let\twodigits\two@digits
\makeatother

\begin{document}

\begin{tikzpicture}[node/.style={circle,draw,inner sep=0,minimum width=9},cord/.style={-stealth,thick}]
\begin{scope}[rotate=90,yscale=-1]
\draw (0:0) circle (2);
\draw (0:0) circle (.3);
\foreach \x in {45,90,...,360}
  \draw (\x:.3) -- (\x:2);
\foreach \x [count=\i] in {5.625,16.875,...,354.375}
  \coordinate (n\i) at (\x:2.2);
\foreach[evaluate={\j=int(2*\i+2)}] \x [count=\i] in {16.875,39.375,...,354.375}
  \node at (\x:1.8) {\footnotesize \twodigits\j};
\end{scope}

\node[node] at (n1) {};
\node[node,fill] at (n2) {};
\node[node] at (n8) {};
\node[node,fill] at (n9) {};
\node[node,fill] at (n10) {};
\node[node] at (n11) {};
\node[node] at (n15) {};
\node[node,fill] at (n16) {};
\node[node,fill] at (n17) {};
\node[node] at (n18) {};
\node[node] at (n23) {};
\node[node,fill] at (n24) {};
\node[node,fill] at (n25) {};
\node[node] at (n26) {};
\node[node,fill] at (n31) {};
\node[node] at (n32) {};

\draw[cord,out=290,in=300,looseness=5] (n31) to (n30);

\end{tikzpicture}

\begin{tikzpicture}[node/.style={circle,draw,inner sep=0,minimum width=9},cord/.style={-stealth,thick}]
\begin{scope}[rotate=90,yscale=-1]
\draw (0:0) circle (2);
\draw (0:0) circle (.3);
\foreach \x in {45,90,...,360}
  \draw (\x:.3) -- (\x:2);
\foreach \x [count=\i] in {5.625,16.875,...,354.375}
  \coordinate (n\i) at (\x:2.2);
\foreach[evaluate={\j=int(2*\i+2)}] \x [count=\i] in {16.875,39.375,...,354.375}
  \node at (\x:1.8) {\footnotesize \twodigits\j};
\end{scope}

\node[node] at (n1) {};
\node[node,fill] at (n2) {};
\node[node] at (n8) {};
\node[node,fill] at (n9) {};
\node[node,fill] at (n10) {};
\node[node] at (n11) {};
\node[node] at (n15) {};
\node[node,fill] at (n16) {};
\node[node] at (n18) {};
\node[node] at (n23) {};
\node[node,fill] at (n24) {};
\node[node,fill] at (n25) {};
\node[node] at (n26) {};
\node[node,fill] at (n30) {};
\node[node,fill] at (n31) {};
\node[node] at (n32) {};

\draw[cord,bend left=10] (n30) to (n17);

\end{tikzpicture}

\end{document}

在此处输入图片描述

相关内容