Half annulus 1st and 2nd quadrant

  • Context: MHB 
  • Thread starter Thread starter Dustinsfl
  • Start date Start date
Click For Summary
SUMMARY

The discussion focuses on creating a counterclockwise annulus using TikZ in LaTeX, specifically from a radius of delta to R on the positive x-axis and back. Users are encouraged to adjust the \newcommand definitions for delta and R to modify the width of the annulus. The conversation highlights the use of TikZ libraries such as arrows and decorations.markings for enhanced visual representation. Additionally, there is a preference expressed for using Corel Draw for image creation over LaTeX due to its superior output capabilities.

PREREQUISITES
  • Familiarity with LaTeX and TikZ for graphical representation
  • Understanding of the \newcommand feature in LaTeX
  • Knowledge of coordinate systems and arc drawing in TikZ
  • Basic skills in vector graphic software like Corel Draw
NEXT STEPS
  • Explore TikZ documentation for advanced drawing techniques
  • Learn how to customize \newcommand parameters in LaTeX
  • Investigate Corel Draw's EPS export features for graphics
  • Study the use of decorations and markings in TikZ for enhanced visuals
USEFUL FOR

Graphic designers, LaTeX users, and anyone interested in creating complex graphics or visual representations in academic or professional settings.

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.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 3 ·
Replies
3
Views
1K
Replies
5
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K