你好,我正在尝试将箭头放在圆圈上
\documentclass{article}
\usepackage{pstricks}
\usepackage{pst-all}
\begin{document}
\begin{pspicture}(-4,-4)(4,4)\grilla
\psaxes[linewidth=1.2pt,labels=none,
ticks=none]{-}(0,0)(-4,-4)(4,4)
\pscircle[linewidth=1.1pt](0,0){1}
\pscircle[linewidth=1.1pt](0,0){2}
\pscircle[linewidth=1.1pt](0,0){3}
\rput[c](4,0.2){$x$}
\rput[c](0.2,3.8){$y$}
\end{pspicture}
\end{document}
答案1
\documentclass{article}
\usepackage{pst-plot}
\begin{document}
\begin{pspicture}(-4,-4.5)(4,4.5)
\psaxes[labels=none,ticks=none]{->}(0,0)(-4,-4)(4,4)[$x$,0][$y$,90]
\psset{arrowscale=1.5}
\multido{\n=1+1}{3}{%
\psarcn[linewidth=1.1pt]{>->}(0,0){\n}{45}{225}
\psarc[linewidth=1.1pt](0,0){\n}{30}{230}}
\end{pspicture}
\end{document}
答案2
还有 tikz:
\documentclass[border=2pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{decorations.markings,bending}
\begin{document}
\begin{tikzpicture}[>=latex,line width=.7pt]
\draw (-3.2,0)--(3.2,0)node[right]{$x$} (0,-3.2)--(0,3.2)node[above]{$y$};
\foreach \r in {1,2,3}
\draw[
decoration={markings, mark=at position 0.125 with {\arrow{<}}},
decoration={markings, mark=at position 0.625 with {\arrow{<}}},
postaction={decorate}
]
(0,0) circle (\r);
\end{tikzpicture}
\end{document}
答案3
感谢 Herbert,有一个非常简单的解决方案:
\documentclass{article}
\usepackage{pstricks}
\usepackage{pst-all}
\begin{document}
\begin{pspicture}(-4,-4)(4,4)%\grilla
\psaxes[linewidth=1.2pt,labels=none,
ticks=none]{-}(0,0)(-4,-4)(4,4)
\multido{\n=1+1}{3}{
\pscircle[dimen=middle,linewidth=1.1pt](0,0){\n}
\psarc[linewidth=1.1pt]{<-}(0,0){\n}{45}{90}
\psarc[linewidth=1.1pt]{<-}(0,0){\n}{225}{270}}
\rput[c](4,0.2){$x$}
\rput[c](0.2,3.8){$y$}
\end{pspicture}
\end{document}
是dimen=middle
必需的,因为否则圆弧和圆的半径会不一致。
如果目的是真实地重现图片中的箭头,你也可以使用
\documentclass{article}
\usepackage{pstricks}
\usepackage{pst-all}
\begin{document}
\begin{pspicture}(-4,-4)(4,4)%\grilla
\psaxes[linewidth=1.2pt,labels=none,
ticks=none]{-}(0,0)(-4,-4)(4,4)
\def\mytriangle{\begin{pspicture}(-0.2,-0.2)(0.2,0.2)
\pspolygon[fillstyle=solid,fillcolor=black](-0.2,0.2)(0.2,0.2)(0,-0.2)
\end{pspicture}
}
\multido{\n=1+1}{3}{
\pscircle[linewidth=1.1pt](0,0){\n}
\pstFPmul\rad{\n}{0.707107} % 0.707107 = 1/sqrt(2)
\rput[c]{45}(\rad,\rad){\mytriangle}
\rput[c]{225}(-\rad,-\rad){\mytriangle}
}
\rput[c](4,0.2){$x$}
\rput[c](0.2,3.8){$y$}
\end{pspicture}
\end{document}
我非常有兴趣学习如何feynmp
使用 pstricks 或 ti 重现包装中附带的漂亮弯曲箭头(弯曲的费米子线)钾Z。
更新使用AboAmmar 的解决方案和这个答案,人们可以弯曲箭。
\documentclass[border=2pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{decorations.markings,bending,arrows.meta,calc}
\begin{document}
\begin{tikzpicture}[>=latex,line width=.7pt]
\draw (-3.2,0)--(3.2,0)node[right]{$x$} (0,-3.2)--(0,3.2)node[above]{$y$};
\foreach \r in {1,2,3}
{\draw (0,0) circle (\r);
\draw[-{Stealth[length=0.3cm,bend]}] (90:\r) arc (90:45:\r);
\draw[-{Stealth[length=0.3cm,bend]}] (270:\r) arc (270:225:\r);}
\end{tikzpicture}
\end{document}