Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. documentclass[tikz,border=3.14mm]{standalone}
  2. usepackage{tikz-3dplot}
  3. begin{document}
  4. tdplotsetmaincoords{60}{110}
  5. begin{tikzpicture}[tdplot_main_coords,>=stealth,declare function={%
  6. pfft(x)=pi+0.3*sin(deg(x));}]
  7. draw[->] (0,0,0) coordinate (O) -- (5,0,0) coordinate(X) node[pos=1.1]{$x$};
  8. draw[->] (O) -- (0,5,0) node[pos=1.1]{$y$};
  9. draw[->] (O) -- (0,0,5) node[pos=1.1]{$z$};
  10. path[opacity=0.3,left color=blue,right color=blue,middle color=blue!20,shading
  11. angle=72]
  12. plot[variable=x,domain=0:1.1*pi,smooth] (3,x,{pfft(2*x)}) --
  13. plot[variable=x,domain=1.1*pi:0,smooth] (0,x,{pfft(2*x)}) -- cycle;
  14. path[opacity=0.3,left color=blue,right color=blue,middle color=blue!20,shading
  15. angle=72]
  16. plot[variable=x,domain=1.1*pi:2.2*pi,smooth] (3,x,{pfft(2*x)}) --
  17. plot[variable=x,domain=2.2*pi:1.1*pi,smooth] (0,x,{pfft(2*x)}) -- cycle;
  18. draw plot[variable=x,domain=0:2.2*pi,smooth] (3,x,{pfft(2*x)}) --
  19. plot[variable=x,domain=2.2*pi:0,smooth] (0,x,{pfft(2*x)}) -- cycle;
  20. end{tikzpicture}
  21. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement