summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/visualtikz/Source/tkzgraph3D.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/visualtikz/Source/tkzgraph3D.tex')
-rw-r--r--Master/texmf-dist/doc/latex/visualtikz/Source/tkzgraph3D.tex421
1 files changed, 421 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/visualtikz/Source/tkzgraph3D.tex b/Master/texmf-dist/doc/latex/visualtikz/Source/tkzgraph3D.tex
new file mode 100644
index 00000000000..40ccfdd738d
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/visualtikz/Source/tkzgraph3D.tex
@@ -0,0 +1,421 @@
+\subsubsection{Axes}
+
+\begin{tabular}{|c|c|c|c|} \hline
+\begin{tikzpicture}
+\begin{axis}[width=5cm,samples=10,mesh,no marks,plot box ratio=2 1 1]
+\addplot3 {y};
+\end{axis}
+\end{tikzpicture}
+&
+\begin{tikzpicture}
+\begin{axis}[width=5cm,samples=10,mesh,no marks,plot box ratio=1 2 1]
+\addplot3 {y};
+\end{axis}
+\end{tikzpicture}
+&
+\begin{tikzpicture}
+\begin{axis}[width=5cm,samples=10,mesh,no marks,plot box ratio=1 1 2]
+\addplot3 {y};
+\end{axis}
+\end{tikzpicture}
+ \\ \hline
+ plot box ratio=2 1 1 & plot box ratio=1 2 1 & plot box ratio=1 1 2
+ \\ \hline
+ \end{tabular}
+
+\bigskip
+\begin{tabular}{|c|c|c|c|} \hline
+\begin{tikzpicture}
+\begin{axis}[width=5cm,3d box=background,grid=major,grid style=red]
+\addplot3 [blue] {-x*y};
+\end{axis}
+\end{tikzpicture}
+&
+\begin{tikzpicture}
+\begin{axis}[width=5cm,3d box=complete,grid=major,grid style=red]
+\addplot3 [blue] {-x*y};
+\end{axis}
+\end{tikzpicture}
+&
+\begin{tikzpicture}
+\begin{axis}[width=5cm,3d box=complete*,grid=major,grid style=red]
+\addplot3 [blue] {-x*y};
+\end{axis}
+\end{tikzpicture}
+ \\ \hline
+3d box=background (\dft) & 3d box=complete & 3d box=complete*
+ \\ \hline
+ \end{tabular}
+
+
+\bigskip
+\begin{tabular}{|c|c|c|c|} \hline
+ \begin{tikzpicture}
+ \begin{axis}[width=5cm,axis lines=center,axis on top,ultra thick,blue]
+ \addplot3[surf] {-x*y};
+ \end{axis}
+ \end{tikzpicture}
+&
+ \begin{tikzpicture}
+ \begin{axis}[width=5cm,axis lines*=left,blue]
+ \addplot3[surf] {-x*y};
+ \end{axis}
+ \end{tikzpicture}
+ &
+ \begin{tikzpicture}
+ \begin{axis}[width=5cm,axis lines*=right,blue]
+\addplot3[surf] {-x*y};
+\end{axis}
+\end{tikzpicture}
+\\ \hline
+axis lines=center,axis on top & axis lines*=left & axis lines*=right
+\\ \hline
+ \end{tabular}
+
+\subsubsection{Tracé de la courbe}
+\begin{tabular}{|c|c|c|c|} \hline
+\multicolumn{3}{|c|}{ \BS{addplot3} [surf] \AC{y}; }
+\\ \hline
+\begin{tikzpicture}
+\begin{axis}[width=5cm,blue]
+\addplot3 [surf] {y};
+\end{axis}
+\end{tikzpicture}
+&
+\begin{tikzpicture}
+\begin{axis}[width=5cm,samples=10,blue]
+\addplot3 [surf] {-x*y};
+\end{axis}
+\end{tikzpicture}
+&
+%\begin{tikzpicture}
+%\begin{axis}[width=5cm,blue]
+%\addplot3 [surf] gnuplot[id=sinxy]{sin(x)*sin(y)};
+%\end{axis}
+%\end{tikzpicture}
+\\ \hline
+\AC{y} & \AC{-x*y} & gnuplot[id=sinxy]\AC{sin(x)*sin(y)};
+\\ \hline
+\end{tabular}
+
+\bigskip
+
+\begin{tabular}{|c|c|c|c|} \hline
+\begin{tikzpicture}
+\begin{axis}[width=5cm,blue]
+\addplot3[red,ultra thick] coordinates {(0,0,1) (1,0,0) (1,1,0) (0,1,0)};
+\end{axis}
+\end{tikzpicture}
+&
+\begin{tikzpicture}[scale=.5]
+\begin{axis}[blue]
+\addplot3 [red,ultra thick] file {table3.dat};
+\end{axis}
+\end{tikzpicture}
+&
+\begin{tikzpicture}
+\begin{axis}[width=5cm,domain=0:720,samples=60,samples y=0]
+\addplot3[red] ({sin(x)},{cos(x)},{x/60});
+\end{axis}
+\end{tikzpicture}
+\\ \hline
+coordinates \AC{(0,0,1) (1,0,0) (1,1,0) (0,1,0)}; & file \AC{table3.dat}; & \AC{sin(x)},\AC{cos(x)},\AC{x/60});
+\\ \hline
+\end{tabular}
+\bigskip
+Contenu du fichier table3.dat :
+
+
+\begin{tabular}{|c c c |} \hline
+0 & 0 & 0 \\
+0 & .5 & 0 \\
+0 & 1 & 1 \\
+1 & 1 & 5 \\
+1 & .5& 0 \\
+1& 0& 0 \\
+
+\hline
+\end{tabular}
+
+
+\subsubsection{Aspect}
+
+\begin{tabular}{|c|c|c|c|} \hline
+\begin{tikzpicture}
+\begin{axis}[width=5cm,blue]
+\addplot3 [red] {y};
+\end{axis}
+\end{tikzpicture}
+&
+\begin{tikzpicture}
+\begin{axis}[width=5cm,blue]
+\addplot3 [surf] {y};
+\end{axis}
+\end{tikzpicture}
+&
+\begin{tikzpicture}
+\begin{axis}[width=5cm,blue]
+\addplot3 [mesh] {y};
+\end{axis}
+\end{tikzpicture}
+ \\ \hline
+[red] & [\RDD{surf}] & [\RDD{mesh}]
+\\ \hline
+\begin{tikzpicture}
+\begin{axis}[width=5cm,blue]
+\addplot3 [red,samples=10]{y};
+\end{axis}
+\end{tikzpicture}
+&
+\begin{tikzpicture}
+\begin{axis}[width=5cm,blue]
+\addplot3 [surf,samples=10] {y};
+\end{axis}
+\end{tikzpicture}
+&
+\begin{tikzpicture}
+\begin{axis}[width=5cm,blue]
+\addplot3 [mesh,samples=10] {y};
+\end{axis}
+\end{tikzpicture}
+ \\ \hline
+[red,samples=10] & [surf,samples=10] & [mesh,samples=10]
+\\ \hline
+\end{tabular}
+\bigskip
+
+\begin{tabular}{|c|c|c|c|} \hline
+\begin{tikzpicture}
+\begin{axis}[width=5cm,blue]
+\addplot3 [scatter] {y};
+\end{axis}
+\end{tikzpicture}
+&
+\begin{tikzpicture}
+\begin{axis}[width=5cm,blue]
+\addplot3 [scatter,samples=10] {y};
+\end{axis}
+\end{tikzpicture}
+&
+\begin{tikzpicture}
+\begin{axis}[width=5cm,blue]
+\addplot3 [scatter,samples=10,only marks] {y};
+\end{axis}
+\end{tikzpicture}
+\\ \hline
+[scatter] & [scatter,samples=10] & [scatter,samples=10,only marks]
+\\ \hline
+\end{tabular}
+
+\bigskip %-------------------------------------
+
+\begin{tabular}{|c|c|c|c|} \hline
+\begin{tikzpicture}
+\begin{axis}[width=5cm,blue]
+\addplot3 [surf,colormap/greenyellow] {y};
+\end{axis}
+\end{tikzpicture}
+&
+\begin{tikzpicture}
+\begin{axis}[width=5cm,blue]
+\addplot3 [surf,colormap/hot] {y};
+\end{axis}
+\end{tikzpicture}
+&
+\begin{tikzpicture}
+\begin{axis}[width=5cm,blue]
+\addplot3 [surf,colormap/jet] {y};
+\end{axis}
+\end{tikzpicture}
+\\ \hline
+[surf,\RDD{colormap/greenyellow}] & [surf,\RDD{colormap/hot}] & [surf,\RDD{colormap/jet}]
+\\ \hline
+\begin{tikzpicture}
+\begin{axis}[width=5cm,blue]
+\addplot3 [surf,colormap/blackwhite] {y};
+\end{axis}
+\end{tikzpicture}
+&
+\begin{tikzpicture}
+\begin{axis}[width=5cm,blue]
+\addplot3 [surf,colormap/hot2] {y};
+\end{axis}
+\end{tikzpicture}
+&
+\begin{tikzpicture}
+\begin{axis}[width=5cm,blue]
+\addplot3 [surf,colormap/bluered] {y};
+\end{axis}
+\end{tikzpicture}
+\\ \hline
+[surf,\RDD{colormap/blackwhite}] & [surf,\RDD{colormap/hot2}] & [surf,\RDD{colormap/bluered}]
+\\ \hline
+\begin{tikzpicture}
+\begin{axis}[width=5cm,blue]
+\addplot3 [surf,colormap/cool] {y};
+\end{axis}
+\end{tikzpicture}
+&
+\begin{tikzpicture}
+\begin{axis}[width=5cm]
+\addplot3 [surf,colormap/redyellow] {y};
+\end{axis}
+\end{tikzpicture}
+&
+\begin{tikzpicture}
+\begin{axis}[width=5cm,blue]
+\addplot3 [surf,colormap/violet] {y};
+\end{axis}
+\end{tikzpicture}
+\\ \hline
+[surf,\RDD{colormap/cool}] & [surf,\RDD{colormap/redyellow}] & [surf,\RDD{colormap/violet}]
+\\ \hline
+\end{tabular}
+
+
+
+\bigskip %------------------------------------------------------
+
+
+
+\begin{tabular}{|c|c|c|c|} \hline
+\begin{tikzpicture}
+\begin{axis}[width=5cm,blue]
+\addplot3 [surf,shader=flat,samples=10] {y};
+\end{axis}
+\end{tikzpicture}
+&
+\begin{tikzpicture}
+\begin{axis}[width=5cm,blue]
+\addplot3 [surf,shader=interp,samples=10] {y};
+\end{axis}
+\end{tikzpicture}
+&
+\begin{tikzpicture}
+\begin{axis}[width=5cm,blue]
+\addplot3 [surf,shader=faceted,samples=10] {y};
+\end{axis}
+\end{tikzpicture}
+\\ \hline
+\RDD{shader}=flat & \RDD{shader}=interp & \RDD{shader}=faceted
+ \\ \hline
+\begin{tikzpicture}
+\begin{axis}[width=5cm,blue]
+\addplot3 [surf,shader=flat corner,samples=10] {y};
+\end{axis}
+\end{tikzpicture}
+&
+\begin{tikzpicture}
+\begin{axis}[width=5cm]
+\addplot3 [surf,shader=flat mean,samples=10] {y};
+\end{axis}
+\end{tikzpicture}
+&
+\begin{tikzpicture}
+\begin{axis}[width=5cm,blue]
+\addplot3 [surf,shader=faceted interp,samples=10] {y};
+\end{axis}
+\end{tikzpicture}
+ \\ \hline
+\RDD{shader}=flat corner & \RDD{shader}=flat mean & \RDD{shader}=faceted interp
+ \\ \hline
+ \end{tabular}
+
+
+\bigskip %-----------------------------------------------------
+
+\begin{tabular}{|c|c|c|c|} \hline
+\begin{tikzpicture}
+\begin{axis}[width=5cm,colorbar,blue]
+\addplot3 [surf,samples=10,faceted color=blue] {y};
+\end{axis}
+\end{tikzpicture}
+ \\ \hline
+\RDD{colorbar}
+ \\ \hline
+ \end{tabular}
+
+
+%------------------------------------------------------------------------------
+\subsubsection{Point de vue}
+
+\begin{minipage}[C]{.48\linewidth}
+\begin{animateinline}[poster=first, controls,autoplay,palindrome]{2}%
+\multiframe{11}{iAngle=-50+10}{
+\begin{tikzpicture}
+\begin{axis}[width=5cm,view/az=\iAngle,blue]
+\addplot3 [surf] {-x*y};
+
+\end{axis}
+\node [fill=yellow] {az = \iAngle};
+ \end{tikzpicture}
+}%
+\end{animateinline}%
+\end{minipage}\hfill
+\begin{minipage}[C]{.48\linewidth}
+\begin{animateinline}[poster=first, controls,autoplay,palindrome]{2}%
+\multiframe{11}{iAngle=-50+10}{
+\begin{tikzpicture}
+\begin{axis}[width=5cm,view/el=\iAngle]
+\addplot3 [surf] {-x*y};
+
+\end{axis}
+\node [fill=yellow] {el = \iAngle};
+ \end{tikzpicture}
+}%
+\end{animateinline}%
+\end{minipage}
+\begin{minipage}[C]{.48\linewidth}
+\begin{center}
+Azimut \\
+\RDD{view/az}= angle de - 50 à +50
+\end{center}
+\end{minipage}\hfill
+\begin{minipage}[C]{.48\linewidth}
+\begin{center}
+Elévation \\
+\RDD{view/el}= angle de - 50 à +50
+\end{center}
+\end{minipage}
+\bigskip %A Voir-------------------------------------------------
+
+
+
+%\begin{tikzpicture}
+%\begin{axis}[width=5cm]
+%\addplot3[mesh,domain=0:360] {sin(x)*sin(y)};
+%\end{axis}
+%\end{tikzpicture}
+%\begin{tikzpicture}
+%\begin{axis}[width=5cm]
+%\addplot3[surf,fill=white,domain=0:360] {sin(x)*sin(y)};
+%\end{axis}
+%\end{tikzpicture}
+
+%\begin{tikzpicture}
+%\begin{axis}[width=5cm,axis background/.style={fill=red!10}]
+%\addplot3 [blue] {y};
+%\end{axis}
+%\end{tikzpicture}
+
+
+%\begin{tikzpicture}
+%\begin{axis}[
+%axis lines=center,
+%axis on top,
+%xlabel={$x$}, ylabel={$y$}, zlabel={$z$},
+%domain=0:1,
+%y domain=0:2*pi,
+%xmin=-1.5, xmax=1.5,
+%ymin=-1.5, ymax=1.5, zmin=0.0,
+%mesh/interior colormap=
+%{blueblack}{color=(black) color=(blue)},
+%colormap/blackwhite,
+%samples=10,
+%samples y=40,
+%z buffer=sort,
+%]
+%\addplot3[surf]
+%({x*cos(deg(y))},{x*sin(deg(y))},{x});
+%\end{axis}
+%\end{tikzpicture}