Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I use Geospacw to draw two big circles but I cannot it using TikZ (or PSTricks).

picture

How can I draw it?

share|improve this question
1  
You should at least give it a try; this is not a "do it for me" forum. –  Svend Tveskæg Feb 23 at 3:58
1  
@ Svend I want to try but I can not. –  minthao_2011 Feb 23 at 6:14

2 Answers 2

up vote 8 down vote accepted

Just for typing exercise with PSTricks.

\documentclass[pstricks]{standalone}
\usepackage{pst-eucl}
\newcommand\Orbit[2][0]{\rput{#1}{%
    \psellipse[linewidth=0,linestyle=none,fillstyle=vlines,hatchcolor=#2!20,hatchsep=2pt](0,0)(4,1)%
    \psellipticarc[linecolor=#2!50](0,0)(4,1){180}{360}}}

\begin{document}
\pspicture[dimen=m](-5,-5)(5,5)
\Orbit{red}\Orbit[300]{green}\pscircle[linecolor=blue]{4}
\pstGeonode{A}
\endpspicture
\end{document}

enter image description here

share|improve this answer
    
Note: hatchstyle=dashed does not exist. –  cyanide-based food Feb 23 at 4:17

With tikz. May need some polishing but, I put it as such.

\documentclass[tikz]{standalone}
\usetikzlibrary{patterns}
\newcommand{\greatcircle}[5][]{%
\path[#1,pattern=north west lines,pattern color=#1!60,rotate=#5,dashed] (#2) circle [x radius=#3, y radius=#4];
\begin{scope}[rotate=#5]
\clip (#3,0) rectangle ([xshift=-0.1,yshift=-0.1]-#3,-#4);
\draw[#1] (#2) circle [x radius=#3, y radius=#4];
\end{scope}
}

\begin{document}
\begin{tikzpicture}
  \draw[blue](0,0) circle [radius=2cm];
  \greatcircle[green] {0,0} {2cm}{0.5cm}{-80}
  \greatcircle[red] {0,0} {2cm}{0.5cm}{-10} 
    \draw[fill] (0,0) circle (1pt) node[xshift=5pt] {A}; 
\end{tikzpicture}
\end{document}

enter image description here

share|improve this answer
    
@TheLastError No Golfed version :) –  Harish Kumar Feb 23 at 5:39
    
How to rotate the disc along another axis? –  rpapa Feb 24 at 15:39
    
@rpapa not the rotation but simply change the y radius. –  Harish Kumar Feb 24 at 22:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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