Advertisement
nm9505

Proyección Estereográfica (Standalone)

Mar 25th, 2023 (edited)
1,935
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 2.46 KB | Science | 0 0
  1. \documentclass{standalone}
  2. %Paquete para Referencias Web
  3. \usepackage [colorlinks=true,linkcolor=green! 40!blue,citecolor=green!40!blue,filecolor=magenta, urlcolor= green!80!blue!80!black]{hyperref}
  4. %Paquete de estilo de Referencias
  5. \urlstyle{same}
  6. \usepackage[all]{xy}
  7. \usepackage{pst-all}
  8. \usepackage{tikz}
  9. \usepackage{gnuplottex}
  10. \usetikzlibrary[shapes,arrows,positioning,fit,backgrounds,intersections,shadows,calc]
  11. \usetikzlibrary{positioning} \usetikzlibrary{decorations.text} \usetikzlibrary{decorations.pathmorphing}
  12.  
  13. \usepackage{lscape}
  14. \usepackage{pgfplots}
  15. \usepackage{tikz,tikz-3dplot}
  16.  
  17. \tikzstyle{point}=[inner sep=0pt, outer sep=0pt, minimum size=2pt,fill=black,shape=circle]
  18.  
  19. \begin{document}
  20. \colorlet{AnguloH}{green!50!black}
  21. \colorlet{AnguloV}{magenta}
  22. \colorlet{Cesferica}{red}
  23. \colorlet{Ccilindrica}{blue}
  24. %\begin{landscape}%Vuelve la página en horizontal
  25. \pagecolor{black}
  26. \noindent
  27.  
  28. \Large{\textcolor{blue}{Perspectiva en }\\
  29. \textcolor{red}{Tikz-3dplot }}\\
  30. \href{enlace}{\underline{\textcolor{white}{enlace:} Código \LaTeX }}
  31.  
  32. \tdplotsetmaincoords{80}{100}
  33. \begin{tikzpicture}[scale=1,line join=bevel,tdplot_main_coords,fill opacity=0.9]
  34.  
  35. \tdplotsphericalsurfaceplot[parametricfill]{36}{24}
  36. {2}{green}{3*\tdplottheta+3*\tdplotphi}
  37. {}%Sin eje x
  38. {}%Sin eje y
  39. {}%Sin eje z
  40. %Las proyecciones
  41. \foreach \a in {-1.6,-1.4,...,1.8}
  42. {
  43. \pgfmathsetmacro{\k}{sqrt(4-\a^2)}
  44. \pgfmathsetmacro{\t}{4*\k/(2-\a)}
  45. \foreach \b in {0,5,...,360}
  46. {
  47. \tdplotsinandcos{\sintheta}{\costheta}{\b}
  48. \draw [fill=green] (\k*\costheta, \k*\sintheta, \a) circle (1.5pt)node {};
  49. \draw[-,dashed, orange](0,0,2)--(\k*\costheta, \k*\sintheta, \a);
  50. \draw[->, orange] (\k*\costheta, \k*\sintheta, \a)--(\t*\costheta, \t*\sintheta, -2);
  51.  
  52. \fill [green](\t*\costheta, \t*\sintheta, -2) circle (1.5pt);
  53. }
  54. }
  55. %Los polos
  56. \fill[white] (0,0,-2) circle (2pt);
  57. \fill[black] (0,0,2) circle (2pt);
  58.  
  59. \draw [-,dashed](0,0,-2.3)--(0,0,2.3);
  60.  
  61. \end{tikzpicture}
  62. \begin{tikzpicture}[scale=1,information text/.style={rounded corners, fill=blue!25,inner sep=2ex}]
  63.  
  64. \draw [xshift=1.85cm]  node  [below=2cm,text width=7.5cm, information text,scale=1.5]
  65. {
  66. \texttt{\textbackslash tdplotsetmaincoords\{\textcolor{AnguloH}{80}\}\{\textcolor{AnguloV}{100}\} }\\
  67.  
  68. \texttt{\textbackslash begin\{tikzpicture\} } \\
  69.  
  70. \hspace{1cm} $\vdots$ \hspace{0.2cm} \textcolor{blue}{\tiny{código}}\\
  71.  
  72. \texttt{\textbackslash end\{tikzpicture\} }
  73. };
  74. \end{tikzpicture}
  75. %\end{landscape}
  76. \end{document}
  77.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement