I was going through the code created by you Multiple Normal Curve... Really marvelous... Can anybody just help me in creating the figure like this?
I am confused in how to set the axes...
Thanks in advance...
I was going through the code created by you Multiple Normal Curve... Really marvelous... Can anybody just help me in creating the figure like this?
I am confused in how to set the axes...
Thanks in advance...
If you are only interested in the Gaussians, you may consider:
\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}
EDIT: With changing widths:
\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}
\x^2
in the exponentials you want ;-)