forked from pelegs/maths_book
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path3d_test.tex
31 lines (30 loc) · 843 Bytes
/
3d_test.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{standalone}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.9}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
width=9cm, height=9cm,
axis lines=center,
z buffer=auto,
xlabel=$x$,
ylabel=$y$,
zlabel=$z$,
every axis x label/.style={at={(ticklabel* cs:1.05)}},
every axis y label/.style={at={(ticklabel* cs:1.075)}},
every axis z label/.style={at={(ticklabel* cs:1.05)}},
axis line style={stealth-stealth, thick},
xmin=-4, xmax=4,
ymin=-4, ymax=4,
zmin=-4, zmax=4,
xtick=\empty,
ytick=\empty,
ztick=\empty,
]
\addplot3[surf, fill=blue!5, opacity=0.5, domain=-4:4, samples=5] {0};
\draw[dashed, thick] (axis cs:-4,-4,-4) -- (axis cs:4,4,4);
\draw[-stealth, ultra thick, red] (axis cs:0,0,0) -- (axis cs:2,2,2);
\end{axis}
\end{tikzpicture}
\end{document}