| 1 |
%\subsection{Graphe en 3D à partir d'équations} |
| 2 |
\subsubsection{psplotThreeD} |
| 3 |
\psset{unit=.5cm} |
| 4 |
\psset{fillstyle=none,fillcolor=yellow,linecolor=blue,dotscale=.25} |
| 5 |
|
| 6 |
\begin{tabular}{|c|} \hline |
| 7 |
\BSS{psplotThreeD}[algebraic] \Rnode*[fillcolor=green]{A}{(-4,4)(-4,4)} \Rnode*[fillcolor=yellow]{B}{\AC{sin(x)*cos(y)}}\\ |
| 8 |
|
| 9 |
\\ |
| 10 |
\hspace{1cm} \rnode{AA}{\TFRGB{plages pour x et y}{ranges for x and y}} \hspace{1cm}\rnode{BB}{\TFRGB{fonction en x y}{function y x} } |
| 11 |
\\ \hline |
| 12 |
\begin{pspicture}(-6,-4)(6,6) |
| 13 |
\psset{Beta=45} |
| 14 |
\psplotThreeD[algebraic](-4,4)(-4,4){sin(x)*cos(y)} |
| 15 |
\pstThreeDCoor[xMin=-1,xMax=5,yMin=-1,yMax=5,zMin=-1,zMax=6] |
| 16 |
\end{pspicture} |
| 17 |
|
| 18 |
\\ \hline |
| 19 |
\end{tabular} |
| 20 |
\ncline[linecolor=blue]{A}{AA} \ncline[linecolor=blue]{B}{BB} |
| 21 |
|
| 22 |
\bigskip |
| 23 |
%\subsubsection{Option plotstyle} |
| 24 |
\psset{unit=.25cm} |
| 25 |
|
| 26 |
|
| 27 |
\begin{tabular}{|c|c|c|} \hline |
| 28 |
\multicolumn{3}{|c|}{ \BS{psplotThreeD}[algebraic,\RDD{plotstyle}=line](-4,4)(-4,4)\AC{sin(x)*cos(y)} } \\ \hline |
| 29 |
|
| 30 |
\begin{pspicture}(-6,-4)(6,6) |
| 31 |
\psset{Beta=45} |
| 32 |
\psplotThreeD[algebraic,plotstyle=line](-4,4)(-4,4){sin(x)*cos(y)} |
| 33 |
\pstThreeDCoor[xMin=-1,xMax=5,yMin=-1,yMax=5,zMin=-1,zMax=6] |
| 34 |
\end{pspicture} |
| 35 |
& |
| 36 |
\begin{pspicture}(-6,-4)(6,6) |
| 37 |
\psset{Beta=45} |
| 38 |
\psplotThreeD[algebraic,plotstyle=polygon](-4,4)(-4,4){sin(x)*cos(y)} |
| 39 |
\pstThreeDCoor[xMin=-1,xMax=5,yMin=-1,yMax=5,zMin=-1,zMax=6] |
| 40 |
\end{pspicture} |
| 41 |
& |
| 42 |
\begin{pspicture}(-6,-4)(6,6) |
| 43 |
\psset{Beta=45} |
| 44 |
\psplotThreeD[algebraic,plotstyle=dots](-4,4)(-4,4){sin(x)*cos(y)} |
| 45 |
\pstThreeDCoor[xMin=-1,xMax=5,yMin=-1,yMax=5,zMin=-1,zMax=6] |
| 46 |
\end{pspicture} |
| 47 |
\\ \hline |
| 48 |
plotstyle=line & plotstyle=polygon & plotstyle=dots \\ \hline |
| 49 |
\begin{pspicture}(-6,-4)(6,6) |
| 50 |
\psset{Beta=45} |
| 51 |
\psplotThreeD[algebraic,plotstyle=curve](-4,4)(-4,4){sin(x)*cos(y)} |
| 52 |
\pstThreeDCoor[xMin=-1,xMax=5,yMin=-1,yMax=5,zMin=-1,zMax=6] |
| 53 |
\end{pspicture} |
| 54 |
& |
| 55 |
\begin{pspicture}(-6,-4)(6,6) |
| 56 |
\psset{Beta=45} |
| 57 |
\psplotThreeD[algebraic,plotstyle=ecurve](-4,4)(-4,4){sin(x)*cos(y)} |
| 58 |
\pstThreeDCoor[xMin=-1,xMax=5,yMin=-1,yMax=5,zMin=-1,zMax=6] |
| 59 |
\end{pspicture} |
| 60 |
& |
| 61 |
\begin{pspicture}(-6,-4)(6,6) |
| 62 |
\psset{Beta=45} |
| 63 |
\psplotThreeD[algebraic,plotstyle=ccurve](-4,4)(-4,4){sin(x)*cos(y)} |
| 64 |
\pstThreeDCoor[xMin=-1,xMax=5,yMin=-1,yMax=5,zMin=-1,zMax=6] |
| 65 |
\end{pspicture} |
| 66 |
|
| 67 |
\\ \hline |
| 68 |
plotstyle=curve & plotstyle=ecurve & plotstyle=ccurve \\ \hline |
| 69 |
|
| 70 |
\end{tabular} |
| 71 |
\bigskip |
| 72 |
|
| 73 |
\begin{tabular}{|c|c|c|c|} \hline |
| 74 |
\multicolumn{4}{|c|}{ \BS{psplotThreeD}[algebraic,\RDD{drawStyle}=xLines](-4,4)(-4,4)\AC{sin(x)*cos(y)} } \\ \hline |
| 75 |
\begin{pspicture}(-6,-4)(6,6) |
| 76 |
\psset{Beta=45} |
| 77 |
\psplotThreeD[algebraic,drawStyle=xLines](-4,4)(-4,4){sin(x)*cos(y)} |
| 78 |
\pstThreeDCoor[xMin=-1,xMax=5,yMin=-1,yMax=5,zMin=-1,zMax=6] |
| 79 |
\end{pspicture} |
| 80 |
& |
| 81 |
\begin{pspicture}(-6,-4)(6,6) |
| 82 |
\psset{Beta=45} |
| 83 |
\psplotThreeD[algebraic,drawStyle=yLines](-4,4)(-4,4){sin(x)*cos(y)} |
| 84 |
\pstThreeDCoor[xMin=-1,xMax=5,yMin=-1,yMax=5,zMin=-1,zMax=6] |
| 85 |
\end{pspicture} |
| 86 |
& |
| 87 |
\begin{pspicture}(-6,-4)(6,6) |
| 88 |
\psset{Beta=45} |
| 89 |
\psplotThreeD[algebraic,drawStyle=xyLines](-4,4)(-4,4){sin(x)*cos(y)} |
| 90 |
\pstThreeDCoor[xMin=-1,xMax=5,yMin=-1,yMax=5,zMin=-1,zMax=6] |
| 91 |
\end{pspicture} |
| 92 |
& |
| 93 |
\begin{pspicture}(-6,-4)(6,6) |
| 94 |
\psset{Beta=45} |
| 95 |
\psplotThreeD[algebraic,drawStyle=yxLines](-4,4)(-4,4){sin(x)*cos(y)} |
| 96 |
\pstThreeDCoor[xMin=-1,xMax=5,yMin=-1,yMax=5,zMin=-1,zMax=6] |
| 97 |
\end{pspicture} |
| 98 |
\\ \hline |
| 99 |
drawStyle=xLines & drawStyle=yLines & drawStyle=xyLines & drawStyle=yxLines \\ |
| 100 |
\dft & & & \\ \hline |
| 101 |
\end{tabular} |
| 102 |
|
| 103 |
\bigskip |
| 104 |
|
| 105 |
\begin{tabular}{|c|c|} \hline |
| 106 |
\multicolumn{2}{|c|}{ \BS{psplotThreeD}[algebraic,\RDD{showpoints}=false,linewidth=.1pt] } \\ |
| 107 |
\multicolumn{2}{|c|}{ (-4,4)(-4,4)\AC{sin(x)*cos(y)} } \\ \hline |
| 108 |
\begin{pspicture}(-6,-4)(6,6) |
| 109 |
\psset{Beta=45} |
| 110 |
\psplotThreeD[algebraic,showpoints=false,linewidth=.1pt](-4,4)(-4,4){sin(x)*cos(y)} |
| 111 |
\pstThreeDCoor[xMin=-1,xMax=5,yMin=-1,yMax=5,zMin=-1,zMax=6] |
| 112 |
\end{pspicture} |
| 113 |
& |
| 114 |
\begin{pspicture}(-6,-4)(6,6) |
| 115 |
\psset{Beta=45} |
| 116 |
\psplotThreeD[algebraic,showpoints=true,linewidth=.1pt](-4,4)(-4,4){sin(x)*cos(y)} |
| 117 |
\pstThreeDCoor[xMin=-1,xMax=5,yMin=-1,yMax=5,zMin=-1,zMax=6] |
| 118 |
\end{pspicture} |
| 119 |
\\ \hline |
| 120 |
showpoints=false & showpoints=true \\ \hline |
| 121 |
\dft & \\ \hline |
| 122 |
\end{tabular} |
| 123 |
|
| 124 |
\bigskip |
| 125 |
\begin{tabular}{|c|c|c|c|} \hline |
| 126 |
\multicolumn{4}{|c|}{ \BS{psplotThreeD}[algebraic,\RDD{xPlotpoints}=5,drawStyle=xyLines](-4,4)(-4,4)\AC{sin(x)*cos(y)} } \\ \hline |
| 127 |
\begin{pspicture}(-6,-4)(6,6) |
| 128 |
\psset{Beta=45} |
| 129 |
\psplotThreeD[algebraic,plotstyle=line,xPlotpoints=5,drawStyle=xyLines](-4,4)(-4,4){sin(x)*cos(y)} |
| 130 |
\pstThreeDCoor[xMin=-1,xMax=5,yMin=-1,yMax=5,zMin=-1,zMax=6] |
| 131 |
\end{pspicture} |
| 132 |
& |
| 133 |
\begin{pspicture}(-6,-4)(6,6) |
| 134 |
\psset{Beta=45} |
| 135 |
\psplotThreeD[algebraic,plotstyle=line,yPlotpoints=5,drawStyle=xyLines](-4,4)(-4,4){sin(x)*cos(y)} |
| 136 |
\pstThreeDCoor[xMin=-1,xMax=5,yMin=-1,yMax=5,zMin=-1,zMax=6] |
| 137 |
\end{pspicture} |
| 138 |
& |
| 139 |
\begin{pspicture}(-6,-4)(6,6) |
| 140 |
\psset{Beta=45} |
| 141 |
\psplotThreeD[algebraic,plotstyle=line,xPlotpoints=5,yPlotpoints=5,drawStyle=xyLines](-4,4)(-4,4){sin(x)*cos(y)} |
| 142 |
\pstThreeDCoor[xMin=-1,xMax=5,yMin=-1,yMax=5,zMin=-1,zMax=6] |
| 143 |
\end{pspicture} |
| 144 |
& |
| 145 |
\begin{pspicture}(-6,-4)(6,6) |
| 146 |
\psset{Beta=45} |
| 147 |
\psplotThreeD[algebraic,plotstyle=line,xPlotpoints=50,drawStyle=xyLines](-4,4)(-4,4){sin(x)*cos(y)} |
| 148 |
\pstThreeDCoor[xMin=-1,xMax=5,yMin=-1,yMax=5,zMin=-1,zMax=6] |
| 149 |
\end{pspicture} |
| 150 |
\\ \hline |
| 151 |
xPlotpoints=5 & yPlotpoints=5 & yPlotpoints=5 & xPlotpoints=50 \\ |
| 152 |
& & yPlotpoints=5 &\\ \hline |
| 153 |
\multicolumn{4}{|c|}{\blue \dft : xPlotpoints=25 \hspace{1cm} yPlotpoints=25 } |
| 154 |
\\ \hline |
| 155 |
\end{tabular} |
| 156 |
|
| 157 |
\bigskip |
| 158 |
|
| 159 |
|
| 160 |
\begin{tabular}{|c|c|} \hline |
| 161 |
\multicolumn{2}{|c|}{ \BS{psplotThreeD}[algebraic,\RDD{hiddenLine}=false](-4,4)(-4,4)\AC{sin(x)*cos(y)} } \\ \hline |
| 162 |
\begin{pspicture}(-6,-4)(6,6) |
| 163 |
\psplotThreeD[algebraic,hiddenLine=false,plotstyle=curve](-4,4)(-4,4){sin(x)*cos(y)} |
| 164 |
\end{pspicture} |
| 165 |
& |
| 166 |
\begin{pspicture}(-6,-4)(6,6) |
| 167 |
\psplotThreeD[algebraic,hiddenLine=true,plotstyle=curve](-4,4)(-4,4){sin(x)*cos(y)} |
| 168 |
\end{pspicture} |
| 169 |
\begin{pspicture}(-6,-4)(6,6) |
| 170 |
\psplotThreeD[algebraic,hiddenLine=true,plotstyle=curve, drawStyle=yLines ](-4,4)(-4,4){sin(x)*cos(y)} |
| 171 |
\end{pspicture} |
| 172 |
\\ \hline |
| 173 |
hiddenLine=false & hiddenLines=true \\ \hline |
| 174 |
\dft & \\ \hline |
| 175 |
\end{tabular} |
| 176 |
|
| 177 |
%------------------------------------------------------- |
| 178 |
\subsubsection{parametricplotThreeD} |
| 179 |
|
| 180 |
|
| 181 |
\psset{unit=.5cm} |
| 182 |
|
| 183 |
\begin{tabular}{|c|}\hline |
| 184 |
\BSS{parametricplotThreeD}[xPlotpoints=200,plotstyle=curve,algebraic]\\ |
| 185 |
\Rnode*[fillcolor=green]{A}{(0,50)} \Rnode*[fillcolor=yellow]{B}{\AC{ t/10*cos(t) | t/10*sin(t) | t/10}}\\ |
| 186 |
\\ |
| 187 |
\rnode{AA}{ \TFRGB{plage pour t}{range for t} } \hspace{1cm}\rnode{BB}{\TFRGB{3 fonctions paramétriques}{3 parametric functions}} |
| 188 |
\\ \hline |
| 189 |
\begin{pspicture}(-6,-2.25)(6,7) |
| 190 |
\pstThreeDCoor[zMax=5] |
| 191 |
\parametricplotThreeD[xPlotpoints=200,plotstyle=curve,algebraic](0,50){ t/10*cos(t) | t/10*sin(t) | t/10} |
| 192 |
\end{pspicture} |
| 193 |
\\ \hline |
| 194 |
\end{tabular} |
| 195 |
\ncline[linecolor=blue]{A}{AA} \ncline[linecolor=blue]{B}{BB} |
| 196 |
|
| 197 |
\newpage |
| 198 |
% % %------------------------------------------------- |
| 199 |
\SbSSCT{Graphe en 3D à partir d'un fichier de données}{3D graph from a data file} |
| 200 |
\subsubsection{fileplotThreeD} |
| 201 |
|
| 202 |
\begin{tabular}{|c|c|} \hline |
| 203 |
\begin{pspicture}[shift=*](-6,-2.25)(6,7) |
| 204 |
\pstThreeDCoor[zMax=5] |
| 205 |
\fileplotThreeD{data3d.txt} |
| 206 |
\end{pspicture}% |
| 207 |
& |
| 208 |
\parbox{8cm}{ |
| 209 |
|
| 210 |
\BSS{fileplotThreeD}\AC{data3d.txt} \\ |
| 211 |
\\ |
| 212 |
\% data3d.txt : \TFRGB{fichier de données créé avec}{data file created with} Excel \\ |
| 213 |
\\ |
| 214 |
|
| 215 |
} |
| 216 |
\\ \hline |
| 217 |
\end{tabular} |
| 218 |
% % %------------------------------------------------------------- |
| 219 |
|
| 220 |
\subsubsection{dataplotThreeD} |
| 221 |
|
| 222 |
\begin{tabular}{|c|c|} \hline |
| 223 |
\readdata{\data}{data3d.txt} |
| 224 |
\begin{pspicture}[shift=*](-6,-2.25)(6,7) |
| 225 |
\pstThreeDCoor[zMax=5] |
| 226 |
\dataplotThreeD[plotstyle=line]{\data} |
| 227 |
\end{pspicture}% |
| 228 |
& |
| 229 |
\parbox{8cm}{ |
| 230 |
|
| 231 |
\BS{readdata}\AC{\BS{data}}\AC{data3d.txt} \\ |
| 232 |
\\ |
| 233 |
\% data3d.txt : \TFRGB{fichier de données créé avec}{data file created with} Excel \\ |
| 234 |
\\ |
| 235 |
\BSS{dataplotThreeD}[plotstyle=line]\AC{\BS{data}} \\ |
| 236 |
} |
| 237 |
\\ \hline |
| 238 |
\end{tabular} |
| 239 |
%%-------------------------------------------------------- |
| 240 |
\subsubsection{listplotThreeD} |
| 241 |
|
| 242 |
\begin{tabular}{|c|c|} \hline |
| 243 |
\readdata{\data}{data3d.txt} |
| 244 |
\begin{pspicture}[shift=*](-6,-2.25)(6,7) |
| 245 |
\pstThreeDCoor[zMax=5] |
| 246 |
\listplotThreeD[plotstyle=curve]{\data} |
| 247 |
\end{pspicture}% |
| 248 |
& |
| 249 |
\parbox{8cm}{ |
| 250 |
|
| 251 |
\BS{readdata}\AC{\BS{data}}\AC{data3d.txt} \\ |
| 252 |
\\ |
| 253 |
\% data3d.txt : \TFRGB{fichier de données créé avec}{data file created with} Excel \\ |
| 254 |
\\ |
| 255 |
\BSS{listplotThreeD}[plotstyle=curve]\AC{\BS{data}} \\ |
| 256 |
} |
| 257 |
\\ \hline |
| 258 |
\end{tabular} |
| 259 |
|
| 260 |
|
| 261 |
|