#Contour with tikz

1 messages · Page 1 of 1 (latest)

eager mauve
#

How do you make this contour using tikz?

floral depot
#

Oh you're the same person 😁

#

And circles above that paragraph.

eager mauve
#

Is it possible to add labels to the different parts of the contour as well?

rustic wyvern
#
<tikz>                                                       % ignore this line
\tikzset{every picture/.style={>=Classical TikZ Rightarrow}} % ignore this line
\usetikzlibrary{decorations.markings}
\begin{tikzpicture}
  \pgfmathsetmacro\ax{4}
  \draw (-\ax, 0) -- (\ax, 0) (0, -\ax) -- (0, \ax);

  \pgfmathsetmacro\w{.4}
  \pgfmathsetmacro\r{.6}
  \pgfmathsetmacro\a{asin(\w/2/\r)}
  \pgfmathsetmacro\R{3.5}
  \pgfmathsetmacro\A{asin(\w/2/\R)}
  \draw [very thick, postaction={decorate}, decoration={
    markings,
    mark=at position .2 with {\arrow{>}},
    mark=at position .5 with {\arrow{>}},
    mark=at position .83 with {\arrow{>}},
    mark=at position .96 with {\arrow{>}},
  }]
    ( \A : \R) arc [radius=\R, start angle= \A, end angle= 360-\A] --
    (-\a : \r) arc [radius=\r, start angle=-\a, end angle=-360+\a] -- cycle;

  \path node at ( 45 : \R) [anchor=-135] {$\gamma_R$}
        node at (135 : \r) [anchor= -45] {$\gamma_r$}
        node at (2.4,  \w) [anchor= -90] {$\gamma_\epsilon$}
        node at (2.4, -\w) [anchor=  90] {$\gamma_{-\epsilon}$};
\end{tikzpicture}
rotund ferryBOT
rustic wyvern
#

modify this code or something