我想画出带有标签的复指数信号,角度也类似。有人能告诉我怎么做吗,或者给我提供一些参考吗?那就太好了。非常感谢。
\documentclass\[border=5mm\]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{tikzpicture}
\draw \[magenta, thick\] circle \[radius=3\];
\draw \[blue\] circle \[radius=4.3\];
\draw \[Circle-\] (0,0) -- node\[left,red\] {$R$} (60:3);
\end{tikzpicture}
\end{document}
答案1
使用xelatex
或latex->dvips->ps2pdf
如果您想要动画multido
:
\documentclass[border=10pt,pstricks]{standalone}
\usepackage{pst-node,pst-plot,multido}
\begin{document}
\def\i{300}
%\multido{\i=360+-6}{60}{%
\begin{pspicture}(-1.3,-1.3)(3.5,1.5)
\psaxes[labels=none,linewidth=0.5pt,linecolor=black!20]{->}%
(0,0)(-1.2,-1.2)(1.2,1.2)[Re,0][Im,90]
\pscircle[linestyle=dashed,linewidth=0.4pt]{1}
\pnode(1;\i){R}
{\psset{linecolor=gray,linestyle=dashed,
linewidth=0.5\pslinewidth,dash=2pt 2pt}
\psline(0,0|R)(R)
\psline(R)(R|0,0)}
\psset{arrows=->}\fboxsep=0pt
\psline[linewidth=1.2pt](R)\rput(1.1;\i){\footnotesize A}
\psline[linecolor=red](0,0|R)
\psline[linecolor=blue](R|0,0)
\rput[l](0.25,1.1){\footnotesize Circle of magnitude A}
\psarcn{->}(0,0){0.4}{0}{\i}\rput[lb](0.45;\i){$\scriptstyle-\Omega_0t$}
\end{pspicture}%
%}
\end{document}
与动画相同:
答案2
我希望我正确理解了你的问题。你想绘制轴、角度和注释。在我看来,pgfmanual 的教程是学习这些内容的好地方。
\documentclass[border=5mm]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,angles,quotes,positioning}
\begin{document}
\begin{tikzpicture}[font=\sffamily]
\draw [magenta, thick] circle [radius=3];
\draw [blue] circle [radius=4.3];
\draw [Circle-] (0,0) -- node[left,red] {$R$} (60:3) coordinate (R);
% axes
\draw[latex-latex] (0,5) node[above]{Im} -- (0,0) coordinate (O)
-- (5,0) coordinate(X) node[right]{Re};
% angle
\draw pic ["$\Omega_0t$",angle eccentricity=1.33,draw,-latex,angle radius=1cm,fill=blue!50]
{angle = X--O--R};
\path (60:4.3) coordinate (C) node[above right=5mm,inner sep=0pt] (C'){Circle of magnitude $A$};
\draw[-latex] (C'.south west) to[out=-90,in=60] (C);
\end{tikzpicture}
\end{document}