虚线部分该如何画?

虚线部分该如何画?

我想制作图形,但是我无法制作圆圈外面的虚线部分。

在此处输入图片描述

我的代码如下:

\开始{中心}

\begin{tikzpicture}[scale=2.5]

    \draw[line width=.08cm,red,fill=yellow!15] (0,0)circle [radius=1];

    \draw [line width=.08cm,blue,-Stealth] (-1.5,0)--(1.8,0);

    \draw [line width=.08cm,blue,-Stealth] (0,-1.5)--(0,1.8);

    \node at (1.6,-.2){$\pmb{X}$};

    \node at (.2,1.6){$\pmb{Y}$};

    \node at (.1,-.1){$\pmb{O}$};

    \node at (1.4,.1){$\pmb{A=(1,0)}$};

    \node at (60:1.2){$\pmb{P}$};

    \node[blue] at (60:1){$\bullet$};

    \node[blue] at (0:1){$\bullet$};

    \node[blue] at (0,0){$\bullet$};

    \draw (0,0)--(60:1);

    \draw[line width=.08cm,blue,-Stealth] (1,0)--(0:1cm) arc (0:60:1cm);

    \draw[-Stealth] (.3,0)--(0:.3cm) arc (0:60:.3cm);

    \node at (.4,.2){$\pmb{\frac{\pi}{3}rd}$};

\end{tikzpicture}

\end{center}

答案1

通过每隔 10° 提供点直到 780°(即 2×360° + 60°),可以很好地绘制螺旋线。基本半径为 1.1,每旋转一圈半径增加 0.1。

箭头以 2pt 指定,sep = 2pt其中我们将在同一点放置的点的半径。

代码

\documentclass[tikz]{standalone}
\usetikzlibrary{arrows.meta, quotes}
\tikzset{label quotes in math-mode/.style={every label quotes/.append style={execute at begin node=$, execute at end node=$}}}
\begin{document}
\begin{tikzpicture}[
  >=Stealth, thick,
  dot/.style={shape=circle, inner sep=+0pt, outer sep=+0pt, minimum size=+4pt, fill},
  label quotes in math-mode, x=2.5cm, y=2.5cm]
\path[at end, ->, below left]
  (left:1.5) edge node {$x$} (right:1.5)
  (down:1.5) edge node {$y$} (   up:1.5);

\draw (0,0) circle[radius=1];

\node[dot, "O"         below left] (O)          {};
\node[dot, "{A=(1,0)}" below left] (A) at (1,0) {};

\draw[draw=red, dashed, -{>[sep=+2pt]}] % sep is half the size of dot
  plot[samples at={0,10,...,780}, smooth] (\x:1.1+\x/360*.1)
  node[dot, "P" above](P) {};
\draw (O) -- (P);
\end{tikzpicture}
\end{document}

输出

在此处输入图片描述

相关内容