latex-pictures
A collection of TikZ drawings and other images 🖌️
sphere.tikz (816B)
1 % This picture represents a three-dimentional sphere 2 % Copyright Pablo (C) 2021 3 \begin{tikzpicture}[scale=0.4] 4 % The cirference 5 \draw (0, 0) circle (3); 6 7 % The equator 8 \begin{scope} 9 \clip (-3, 0) rectangle (3, -3); 10 \draw ellipse (3 and 1); 11 \end{scope} 12 13 % The equator (on the other side of the sphere) 14 \begin{scope} 15 \clip (-3, 0) rectangle (3, 3); 16 \draw[dotted] ellipse (3 and 1); 17 \end{scope} 18 19 % Greenwhich 20 \begin{scope} 21 \clip (-3, -3) rectangle (0, 3); 22 \draw ellipse (1 and 3); 23 \end{scope} 24 25 % Greenwhich (on the other side of the sphere) 26 \begin{scope} 27 \clip (3, -3) rectangle (0, 3); 28 \draw[dotted] ellipse (1 and 3); 29 \end{scope} 30 \end{tikzpicture} 31