Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. documentclass[tikz]{standalone}
  2. usetikzlibrary{shapes}
  3. begin{document}
  4. begin{tikzpicture}[>=latex,shorten >=2pt,shorten <=2pt,shape aspect=1]
  5. node (A) [cylinder, shape border rotate=90, draw,minimum height=3cm,minimum width=2cm]
  6. {A};
  7. draw [<->] (A.before top) -- (A.after top) node [midway, above,fill=white] {$A_0$};
  8. end{tikzpicture}
  9. end{document}
  10.  
  11. begin{tikzpicture}[join=round]
  12. tikzstyle{conefill} = [fill=blue!20,fill opacity=0.8]
  13. tikzstyle{ann} = [fill=white,font=footnotesize,inner sep=1pt]
  14. tikzstyle{ghostfill} = [fill=white]
  15. tikzstyle{ghostdraw} = [draw=black!50]
  16. filldraw[conefill](-.775,1.922)--(-1.162,.283)--(-.274,.5)
  17. --(-.183,2.067)--cycle;
  18. filldraw[conefill](-.183,2.067)--(-.274,.5)--(.775,.424)
  19. --(.516,2.016)--cycle;
  20. filldraw[conefill](.516,2.016)--(.775,.424)--(1.369,.1)
  21. --(.913,1.8)--cycle;
  22. filldraw[conefill](-.913,1.667)--(-1.369,-.1)--(-1.162,.283)
  23. --(-.775,1.922)--cycle;
  24. draw(1.461,.107)--(1.734,.127);
  25. draw[arrows=<->](1.643,1.853)--(1.643,.12);
  26. filldraw[conefill](.913,1.8)--(1.369,.1)--(1.162,-.283)
  27. --(.775,1.545)--cycle;
  28. draw[arrows=->,line width=.4pt](.274,-.5)--(0,0)--(0,2.86);
  29. draw[arrows=-,line width=.4pt](0,0)--(-1.369,-.1);
  30. draw[arrows=->,line width=.4pt](-1.369,-.1)--(-2.1,-.153);
  31. filldraw[conefill](-.516,1.45)--(-.775,-.424)--(-1.369,-.1)
  32. --(-.913,1.667)--cycle;
  33. draw(-1.369,.073)--(-1.369,2.76);
  34. draw(1.004,1.807)--(1.734,1.86);
  35. filldraw[conefill](.775,1.545)--(1.162,-.283)--(.274,-.5)
  36. --(.183,1.4)--cycle;
  37. draw[arrows=<->](0,2.34)--(-.913,2.273);
  38. draw(-.913,1.84)--(-.913,2.447);
  39. draw[arrows=<->](0,2.687)--(-1.369,2.587);
  40. filldraw[conefill](.183,1.4)--(.274,-.5)--(-.775,-.424)
  41. --(-.516,1.45)--cycle;
  42. draw[arrows=<-,line width=.4pt](.42,-.767)--(.274,-.5);
  43. node[ann] at (-.456,2.307) {$r_0$};
  44. node[ann] at (-.685,2.637) {$r_1$};
  45. node[ann] at (1.643,.987) {$h$};
  46. path (.42,-.767) node[below] {$x$}
  47. (0,2.86) node[above] {$y$}
  48. (-2.1,-.153) node[left] {$z$};
  49. end{tikzpicture}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement