====== Différences ====== Cette page vous donne les différences entre la révision choisie et la version actuelle de la page.
pgf:tikz:surface1 [2010/03/23 20:12] jms |
pgf:tikz:surface1 [2010/03/24 09:05] (Version actuelle) jms |
||
---|---|---|---|
Ligne 11: | Ligne 11: | ||
\begin{axis}[grid=major,view={150}{30}] | \begin{axis}[grid=major,view={150}{30}] | ||
\addplot3[surf,shader=faceted,samples=40,domain=-2:2,y domain=-2:2]% | \addplot3[surf,shader=faceted,samples=40,domain=-2:2,y domain=-2:2]% | ||
- | {100*sin(x)*sin(y)*exp(-x*x+x*y-y*y)}; | + | {100*sin(deg(x))*sin(deg(y))*exp(-x*x+x*y-y*y)}; |
\end{axis} | \end{axis} | ||
\end{tikzpicture} | \end{tikzpicture} | ||
Ligne 18: | Ligne 18: | ||
{{ :pgf:tikz:pgfplots-01.png }} | {{ :pgf:tikz:pgfplots-01.png }} | ||
- | Cette surface est la même que celle produite avec [[octave/index|octave]]. | + | Cette surface est la même que celle produite avec [[octave/index|octave]]. Petite précision: les angles sont, par défaut, en radians dans //Octave//, en degrés dans //pgfplots//. |