用自定义箭头绘制单位圆

用自定义箭头绘制单位圆

是否可以在 latex 中绘制此图?如果不行,可以使用一些替代工具的建议

在此处输入图片描述

谢谢!

答案1

一张图片中有两张图片。

\documentclass[border=5mm]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[>=latex,scale=2]
  \newcommand\NumArrow{10}
  %% Coordinate system
  \draw[->](-1.3,0) -- (1.3,0);
  \draw[->](0,-1.3) -- (0,1.3);
  %% Unit circle
  \draw[thick] (0,0) circle(1);
  %% Arrows at \Num Arrow positions. \ang is the angle
  \foreach \ind [evaluate=\ind as \ang using {\ind*360/\NumArrow}] in {1,...,\NumArrow}{
    \draw[->] (0,0) -- (\ang:1);
  }
  %% Draw small angles
  \foreach \ind [evaluate=\ind as \ang using {\ind*360/\NumArrow}] in {1,...,\NumArrow}{
    \draw[red,->] (\ang:0.3) arc (\ang:\ang+360/\NumArrow:0.3);
  }
  \draw[red,<-] (180/\NumArrow:0.3) -- (10:1.2) node[right]{$2\pi0.1$};
  %% Draw large angles
  \foreach \ind/\startR [evaluate=\ind as \ang using {\ind*360/\NumArrow}] in {0/0.7,1/0.6,2/0.5}{
    \draw[blue,->] [domain=0:360+360/\NumArrow,variable=\alpha,samples=50,smooth] plot (\alpha+\ang:\startR-\alpha/360*0.05);
  }
  \draw[blue,<-] (180/\NumArrow:0.7-0.025/\NumArrow) -- (20:1.2)  node[right]{$2\pi1.1$};;
\end{tikzpicture}
\end{document}

在此处输入图片描述

相关内容