I'm trying to build the Gaussian density with equation e^(-x² - y²) in my LaTeX document, but the result doesn't really satisfy me.
Here is my source code.
Thanks in advance. :)
\begin{tikzpicture}
\begin{axis}[view={25}{30},mark layer=like plot]
\addplot3 [draw=none, mark=*, mark size=2,
on layer=background,
z filter/.expression={z<exp(-x^2-y^2+15) ? z : nan}]
table[row sep=crcr] {%
0 0 15\\
0 0 -15\\
};
\addplot3 [
surf,
shader=faceted,
fill opacity=0.85,
samples=55,
domain=-4:4,
y domain=-4:4,
on layer=main,
] {exp(-x^2-y^2+14)};
\end{axis}
\end{tikzpicture}
Here is a pretty satisfying image I found on the internet :
circuitikz
tag? I see no circuit here...