-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathcomplex-sign-function.tex
53 lines (40 loc) · 988 Bytes
/
complex-sign-function.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
\documentclass{standalone}
\usepackage{mathtools,pgfplots}
\pgfplotsset{compat=newest}
\let\Im\relax
\DeclareMathOperator{\Im}{Im}
\let\Re\relax
\DeclareMathOperator{\Re}{Re}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
xlabel=$\Re(p_0)$,
ylabel=$\Im(p_0)$,
zlabel=$s(p_0)$,
domain=-1:1, surf, shader=flat,
xtick distance=1,
ytick distance=1,
ztick distance=1,
tickwidth=0,
]
\addplot3[blue!30] coordinates {
(-1, 1, -1) (0, 1, -1)
(-1, 0, -1) (0, 0, -1)
};
\addplot3[blue!30] coordinates {
(1, -1, -1) (0, -1, -1)
(1, 0, -1) (0, 0, -1)
};
% Zero plane
\addplot3[gray, opacity=0.1, samples=2]{0};
\addplot3[orange!80] coordinates {
(0, 0, 1) (1, 0, 1)
(0, 1, 1) (1, 1, 1)
};
\addplot3[orange!80] coordinates {
(0, 0, 1) (-1, 0, 1)
(0, -1, 1) (-1, -1, 1)
};
\end{axis}
\end{tikzpicture}
\end{document}