tikz3d-views

../_images/sphx_glr_tikz3d-views.svg
\documentclass[]{standalone}

\usepackage[]{graphicx}

\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\tikzset{>=latex}
\usetikzlibrary{arrows,arrows.meta}
\usepackage{steinmetz}
\newcommand*{\equal}{=}

\usepackage{tikz-3dplot}
\usetikzlibrary{decorations.markings}

\pgfplotsset{every tick label/.append style={font=\tiny}}
\pgfplotsset{every axis label/.append style={font=\tiny}}
\tikzset{->-/.style={decoration={
  markings,
  mark=at position #1 with {\arrow{>}}},postaction={decorate}}}

\begin{document}
\begin{tikzpicture}[]
\begin{axis}[
	view={30}{15},
	xmin=-13,xmax=13,
	ymin=-13,ymax=13,
	zmin=-13,zmax=13,	
%	xtick={-10,-5,5,10},ytick={-10,-5,5,10},ztick={-10,-5,5,10},
	minor tick={-10,...,10},
	title={view=\{30\}\{15\}},
	axis lines=center,
	xlabel={$x$},ylabel={$y$},zlabel={$z$},
	]
	\addplot3 [only marks] coordinates {(5,5,5) (5,5,0)};
	\addplot3 [
                surf,
                shader=faceted,
                fill opacity=0.25,
                samples=2,
                domain=-10:10,
                y domain=-10:10
                ] {0};	
\end{axis}
\end{tikzpicture}
\begin{tikzpicture}[]
\begin{axis}[
	view={60}{15},
	xmin=-13,xmax=13,
	ymin=-13,ymax=13,
	zmin=-13,zmax=13,	
%	xtick={-10,-5,5,10},ytick={-10,-5,5,10},ztick={-10,-5,5,10},
	minor tick={-10,...,10},
	title={view=\{60\}\{15\}},
	axis lines=center,
	xlabel={$x$},ylabel={$y$},zlabel={$z$},
	]
	\addplot3 [only marks] coordinates {(5,5,5) (5,5,0)};
	\addplot3 [
                surf,
                shader=faceted,
                fill opacity=0.25,
                samples=2,
                domain=-10:10,
                y domain=-10:10
                ] {0};	
\end{axis}
\end{tikzpicture}
\end{document}