MHB Half annulus 1st and 2nd quadrant

  • Thread starter Thread starter Dustinsfl
  • Start date Start date
AI Thread Summary
The discussion focuses on creating a counterclockwise oriented annulus using LaTeX with TikZ. The user describes the annulus extending from delta to R on the positive x-axis, then circling back to -R and -delta. They seek confirmation on their drawing and inquire about making the annulus wider, noting that delta and R are defined at the beginning of their code. Additionally, there is a preference expressed for using Corel Draw over LaTeX for creating images, citing its ability to produce high-quality results and export options like EPS.
Dustinsfl
Messages
2,217
Reaction score
5
I am trying to make a annulus oriented counterclockwise so with arrows.

So the annulus goes from delta to R on the positive x-axis then circles around to -R and goes to -delta and circles around from -delta to delta.
 
Physics news on Phys.org
Like this?

annulus.png


Code:
 \usetikzlibrary{arrows,decorations.markings}
 \begin{tikzpicture}[>=stealth']
 \newcommand\delt{1.5}
 \newcommand\R{2}
 \draw[->] (-3,0) -- (3,0);
 \draw[->] (0,-1) -- (0,3);
 \node[below] at (\R,0) {$R$};
 \node[below] at (\delt,0) {$\delta$};
 \draw[
   thick,
   decoration={
     markings,
     mark=at position 2cm with {\arrow{>}},
     mark=at position 8cm with {\arrow{>}}},
   postaction={decorate}]
   (\R,0) arc[start angle=0,end angle=180,radius=\R] --
   (-\delt,0) arc[start angle=180,end angle=0,radius=\delt] -- cycle;
 \end{tikzpicture}
 
Evgeny.Makarov said:
Like this?

annulus.png


Code:
 \usetikzlibrary{arrows,decorations.markings}
 \begin{tikzpicture}[>=stealth']
 \newcommand\delt{1.5}
 \newcommand\R{2}
 \draw[->] (-3,0) -- (3,0);
 \draw[->] (0,-1) -- (0,3);
 \node[below] at (\R,0) {$R$};
 \node[below] at (\delt,0) {$\delta$};
 \draw[
   thick,
   decoration={
     markings,
     mark=at position 2cm with {\arrow{>}},
     mark=at position 8cm with {\arrow{>}}},
   postaction={decorate}]
   (\R,0) arc[start angle=0,end angle=180,radius=\R] --
   (-\delt,0) arc[start angle=180,end angle=0,radius=\delt] -- cycle;
 \end{tikzpicture}

What can I change to make the annulus wider?
 
There are \newcommand's in the beginning that define delta and R.
 
I find a lot of work of making pictures on LaTeX, I do rather prefer Corel Draw which can give you amazing results and you can export images on EPS.
 
Back
Top