Advertisement
kalakay

view

Mar 14th, 2015
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 0.62 KB | None | 0 0
  1. \begin{tikzpicture}
  2.    \begin{axis}[view={15}{7},
  3. xlabel=$x$, ylabel=$y$, zlabel=$z$,
  4. after end axis/.code={
  5.    \draw [-stealth, thick, red] (xticklabel cs:0.2) -- (xticklabel cs:0.8);
  6.    \draw [-stealth, thick, red] (yticklabel cs:0.2) -- (yticklabel cs:0.8);
  7.    \draw [-stealth, thick, red] (zticklabel cs:0.2) -- (zticklabel cs:0.8);                
  8.                    }               % gambar 3
  9.                 ]
  10. \addplot3[surf,shader=flat,
  11.  samples=20,colormap/cool,
  12.  domain=-1:2,y domain=0:2*pi,
  13.  z buffer=sort]
  14.   (x,{(x^3-x^2-6*x)*cos(deg(y))}, {(x^3-x^2-6*x)*sin(deg(y))});
  15.    \end{axis}
  16. \end{tikzpicture}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement