绘制同心圆弧

绘制同心圆弧

你能帮忙画出如下图所示的同心圆弧吗?

\begin{tikzpicture}
\foreach\x in{-2,-1.5,-1,-.5} 
\draw(\x,-1)--(\x,1);
\draw(0,.2) rectangle (.3,1.5);
\draw(0,-1.5) rectangle (.3,-.2);
\draw(0.15,-.1)--(0.15,.1);
 \draw[red] (2,-1.5) arc (-30:30:3);
 \end{tikzpicture}

在此处输入图片描述

答案1

还有expanding waves附带的装饰品\usetikzlibrary{decorations.pathreplacing}

\documentclass[tikz,border=3.14mm]{standalone}
\usetikzlibrary{decorations.pathreplacing}
\begin{document}
\begin{tikzpicture}[slit/.pic={%
\draw[thick,fill=gray] (-0.15,1.5) |- (0.15,0.2) -- (0.15,1.5)
(-0.15,-1.5) |- (0.15,-0.2) -- (0.15,-1.5);
\draw (0,0.15) -- (0,-0.15);
\node[anchor=south,font=\sffamily\bfseries] at (0,1.6){#1};},
decoration={expanding waves,angle=33}]
  \pic (0,0) {slit=A};
  \foreach\X in {-2,-1.5,-1,-.5} 
  {\draw(\X,-1)--(\X,1);}
  \draw[thick,-latex] (-3,0) -- (-2.2,0);
  \foreach\X in {0.5,1,1.5,2} 
  {\draw(\X,-0.2)--(\X,0.2);}
 %
 \begin{scope}[xshift=6cm]
  \pic (0,0) {slit=B};
  \foreach\X in {-2,-1.5,-1,-.5} 
  {\draw(\X,-1)--(\X,1);}
  \draw[thick,-latex] (-3,0) -- (-2.2,0);
  \foreach\X in {0.5,1,1.5,2} 
  {\draw (\X,-0.5-0.25*\X) arc(-90:0:0.2)-- (\X+0.2,0.5+0.25*\X-0.2) 
  arc(0:90:0.2);}
 \end{scope}
 %
 \begin{scope}[yshift=-5cm]
  \pic (0,0) {slit=C};
  \foreach\X in {-2,-1.5,-1,-.5} 
  {\draw(\X,-1)--(\X,1);}
  \draw[thick,-latex] (-3,0) -- (-2.2,0);
  \draw[decorate] (0.25,0) -- (2,0);
 \end{scope}
 %
 \begin{scope}[yshift=-5cm,xshift=6cm]
  \pic (0,0) {slit=D};
  \foreach\X in {-2,-1.5,-1,-.5} 
  {\draw(\X,-1)--(\X,1);}
  \draw[thick,-latex] (-3,0) -- (-2.2,0);
  \draw[decorate] (2,0) -- (0.25,0);
 \end{scope}
\end{tikzpicture}
\end{document}

在此处输入图片描述

相关内容