我想要编译例图里的函数图形,尝试写的代码没准确实现。请老师帮我分析一下,感激。
\documentclass[1pt]{standalone}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{euler}
\usepackage{xcolor}
\usepackage{pgfplots}
\usepackage{pgfplotstable}
\usepgfplotslibrary{colormaps}
\usetikzlibrary{pgfplots.groupplots,matrix}
\pgfplotsset{width=7cm}
\begin{document}
\begin{tikzpicture}
\begin{loglogaxis}[
enlargelimits=false,
grid=both,
ymin=5e-6,ymax=1,
xlabel= undulations per revolution(UPR),
ylabel=amplitude transmission,
log basis y=10,
log basis x=10,
domain=1e0:1e4,samples=360
]
\addplot+[no marks,thick]{exp(-3.1415*(0.4697*x/15))};
\addplot+[no marks,thick]{exp(-3.1415*(0.4697*x/50))};
\addplot+[no marks,thick]{exp(-3.1415*(0.4697*x/150))};
\addplot+[no marks,thick]{exp(-3.1415*(0.4697*x/500))};
\end{loglogaxis}
\end{tikzpicture}
\end{document}
嗯,可以了。万分感激您的指点。