3

How to draw properly parallels of a sphere properly? The equator is ok:

\documentclass{article}    
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\fill[ball color=blue!20] (0,0) circle (1.5);
\draw [thick,dotted] plot [domain=0:pi] ({1.5*cos(\x r)},{0.2*sin(\x r)},0);
\draw [thick] plot [domain=pi:2*pi] ({1.5*cos(\x r)},{0.2*sin(\x r)},0);
\end{tikzpicture}
\end{document}

Yet the other parallels are tricky to put in place.

6

This is one way to do it:

\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\fill[ball color=blue!20] (0,0) circle (1.5 cm);
\newcommand\latitude[1]{%
  \draw (#1:1.5) arc (0:-180:{1.5*cos(#1)} and {0.2*cos(#1)});
  \draw[dashed] (#1:1.5) arc (0:180:{1.5*cos(#1)} and {0.2*cos(#1)});
}
\latitude{30};
\latitude{0};
\latitude{-30};
\end{tikzpicture}
\end{document}  

latitudes

It can be improved, by making the radius(1.5 and 0.2) variables.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.