#Contour with tikz
1 messages · Page 1 of 1 (latest)
Similar as this, but you use circles and arcs <#1107374391655944232 message>.
Oh you're the same person 😁
https://shorturl.at/jCSU0 Here's the command for arcs.
And circles above that paragraph.
Is it possible to add labels to the different parts of the contour as well?
<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}
modify this code or something