Guest User

Untitled

a guest
Jul 18th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. documentclass[tikz]{standalone}
  2.  
  3. usepackage{tikz-3dplot}
  4.  
  5. tikzset{
  6. axis/.style={-stealth,line width=2pt,every node/.append style={text=black}},
  7. xaxis/.style={axis,red},
  8. yaxis/.style={axis,green},
  9. zaxis/.style={axis,blue},
  10. }
  11.  
  12. begin{document}
  13. tdplotsetmaincoords{70}{115}
  14. begin{tikzpicture}[tdplot_main_coords]
  15. draw[xaxis] (0,0,0) -- (1,0,0) node[pos=1.3]{( x )};
  16. draw[yaxis] (0,0,0) -- (0,1,0) node[pos=1.3]{( y )};
  17. draw[zaxis] (0,0,0) -- (0,0,1) node[pos=1.3]{( z )};
  18. end{tikzpicture}
  19. end{document}
  20.  
  21. documentclass[tikz]{standalone}
  22.  
  23. usepackage{tikz-3dplot}
  24.  
  25. usetikzlibrary{arrows.meta}
  26.  
  27. tikzset{
  28. axis/.style={-stealth,line width=2pt,every node/.append style={text=black}},
  29. xaxis/.style={axis,red},
  30. yaxis/.style={axis,green},
  31. zaxis/.style={axis,blue},
  32. }
  33.  
  34. begin{document}
  35. foreach rotationangle in {115,120,...,470}{
  36. tdplotsetmaincoords{70}{rotationangle}
  37. begin{tikzpicture}
  38. clip (-1.5,-0.75) rectangle (1.5,1.5);
  39. begin{scope}[tdplot_main_coords]
  40. draw[xaxis] (0,0,0) -- (1,0,0) node[pos=1.3]{( x )};
  41. draw[yaxis] (0,0,0) -- (0,1,0) node[pos=1.3]{( y )};
  42. draw[zaxis] (0,0,0) -- (0,0,1) node[pos=1.3]{( z )};
  43. end{scope}
  44. end{tikzpicture}
  45. }
  46. end{document}
  47.  
  48. axis/.style={-stealth,line width=2pt,every node/.append style={text=black},line cap=round},
  49.  
  50. filldraw[red] (0,0,0) circle [radius=0.04cm];
  51.  
  52. shade [ball color=black] (0,0,0) circle [radius=0.04cm];
Add Comment
Please, Sign In to add comment