동심원 호 그리기

Nov 17 2020

동심원 호를 그리려고합니다. 나는 좌표를 감소시키는 것과 같은 양만큼 호의 반경을 줄이는 것만 큼 간단하다고 생각했지만 제대로 보이지 않습니다. 어떤 제안?

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.shapes}
\tikzset{decorate sep/.style 2 args=
{decorate,decoration={shape backgrounds,shape=circle,shape size=#1,shape sep=#2}}}
\begin{document}
\begin{center}
\begin{tikzpicture}

\draw[decorate sep={1mm}{1.2mm},fill,red] (0,0) arc (70:110:1);
\draw[decorate sep={1mm}{1.2mm},fill,red] (0,-.2) arc (70:110:.8);
\draw[decorate sep={1mm}{1.2mm},fill,red] (0,-.4) arc (70:110:.6);


\end{tikzpicture}
\end{center}
\end{document}

답변

2 Noname Nov 17 2020 at 08:58

시작점에 극좌표를 사용하여 동심원이되도록 할 수 있습니다.

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.shapes}
\tikzset{decorate sep/.style 2 args=
{decorate,decoration={shape backgrounds,shape=circle,shape size=#1,shape sep=#2}}}
\begin{document}
\begin{center}
\begin{tikzpicture}

\draw[decorate sep={1mm}{1.2mm},fill,red] (70:1) arc (70:110:1);
\draw[decorate sep={1mm}{1.2mm},fill,red] (70:0.8) arc (70:110:.8);
\draw[decorate sep={1mm}{1.2mm},fill,red] (70:0.6) arc (70:110:.6);


\end{tikzpicture}
\end{center}
\end{document}