现在,我有一个电路图,我不知道如何在 GeoGebra 中绘制它,请帮帮我,谢谢。
答案1
这是一个使用 pgfplots 包的小例子,您可以在包文档中检查以下内容:
线条样式 p165, 4.7.2 线条样式;节点 p190, 4.9 轴描述;
\documentclass{memoir}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[a4paper]{geometry}
\usepackage{pgfplots}
\usepackage{vmargin}
\setmarginsrb { 1.5in} % left margin
{ 0.6in} % top margin
{ 1.0in} % right margin
{ 0.8in} % bottom margin
{ 20pt} % head height
{0.25in} % head sep
{ 9pt} % foot height
{ 0.3in} % foot sep
\raggedbottom
\begin{document}
\noindent
\begin{tikzpicture}
\begin{axis}[
minor tick num=3,
axis y line=left,
axis x line=middle,
xlabel=$x$,ylabel=$\sin x$,
yticklabels=\empty,
ymax=1,
ymin=-1,
]
\addplot[smooth,blue,mark=none,
domain=-5:5,samples=40]
{cos(deg(2*x))};
\end{axis}
\begin{axis}[
minor tick num=3,
xticklabels=\empty,
yticklabels=\empty,
axis y line=left,
axis x line=middle,
xlabel=$x$,ylabel=$\sin x$,
ymax=1,
ymin=-1,
]
\addplot[smooth,blue,mark=none,dashed,
domain=-5:5,samples=40]
{cos(deg(3*x))};
\end{axis}
\begin{axis}[
minor tick num=3,
xticklabels=\empty,
yticklabels=\empty,
ymax=1,
ymin=-1,
axis y line=left,
axis x line=middle,
xlabel=$x$,ylabel=$\sin x$,
yticklabels={,-5$\sqrt{3}$,},
]
\addplot[smooth,blue,mark=none,dotted,
domain=-5:5,samples=40]
{sin(deg(x))};
\end{axis}
\end{tikzpicture}
\end{document}