-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathmexican-hat.tex
31 lines (28 loc) · 966 Bytes
/
mexican-hat.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
\documentclass[svgnames]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.8}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{tikzpicture}[font=\footnotesize]
\begin{axis}[
axis lines=center,
axis equal,
domain=0:360,
y domain=0:1.25,
y axis line style=stealth-,
y label style={at={(0.35,0.18)}},
xmax=1.6,zmax=1.3,
xlabel = $\varphi_{_1}$,
ylabel=$\varphi_{_2}$,
zlabel=$U_k(\rho)$,
ticks=none
]
\addplot3 [surf,shader=flat,draw=black,fill=white,z buffer=sort] ({sin(x)*y}, {cos(x)*y}, {(y^2-1)^2});
\coordinate (center) at (axis cs:0,0,1);
\coordinate (minimum) at (axis cs:{cos(30)},{sin(30)},0);
\end{axis}
\fill[DarkBlue] (center) circle (0.1);
\fill[DarkRed] (minimum) circle (0.1);
\draw (center) edge[shorten <=5,shorten >=5,out=-10,in=150,double,draw=gray,double distance=0.5,-{>[length=2,line width=0.5]}] (minimum);
\end{tikzpicture}
\end{document}