答案1
如果您只对高斯感兴趣,您可以考虑:
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\foreach \i in {1,2,3}
{
\draw[gray](0.1+1.2*\i,0) -- (4.6+1.2*\i,3);
\draw[variable=\x,domain=-1:1,blue,thick]
plot ({\x+1.5*\i+1},{(exp(-2*\x*\x)+\i-1)});
\draw[gray] (1.5*\i,\i-1) -- (2+1.5*\i,\i-1);
\draw[gray] (1+1.5*\i,\i-1) -- (1+1.5*\i,\i);
}
\end{tikzpicture}
\end{document}
编辑:宽度变化:
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\foreach \i in {1,2,3}
{
\draw[gray](0.1+1.2*\i,0) -- (4.6+1.2*\i,3);
\draw[variable=\x,domain=-1:1,blue,thick]
plot ({\x+1.5*\i+1},{(exp(-(2+2*(\i-1))*\x*\x)+\i-1)});
\draw[gray] (1.5*\i,\i-1) -- (2+1.5*\i,\i-1);
\draw[gray] (1+1.5*\i,\i-1) -- (1+1.5*\i,\i);
}
\end{tikzpicture}
\end{document}