tikz에서 윤곽을 변형하는 방법

tikz에서 윤곽을 변형하는 방법

A를 따라 곡선을 K까지 가장 오른쪽 상단 지점과 연결할 수 있는 방법을 알아내려고 노력 중입니다. 즉, 플롯의 오른쪽 부분에 원이 조금 더 남아 있기를 원합니다. 지금은 K를 따라 H(...)까지 직선이 있지만 K에서 H(...)까지의 곡선이 조금 더 선호됩니다. 어떻게 해야 하나요? 또한 - 점 위에 또 다른 작은 반원(예: x=-1.5, y=.2)과 x=-1.5, y=.2 아래에 작은 반원을 원할 경우 이를 망치지 않고 이를 수행할 수 있는 방법이 있습니까? 영상? 감사해요! 지금까지 나는 다음과 같은 것을 가지고 있습니다(정확하지는 않지만 유사합니다):

\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{calc,decorations.markings,positioning}
\begin{document}
        \begin{tikzpicture}
        %configurable parameters
        \def\gap{0.4}
        \def\bigradius{4}
        \def\littleradius{1}
        %axes
        \draw[line width=2pt,->](-1.5*\bigradius,0) -- (1.5*\bigradius,0)
        (0,-1.5*\bigradius) -- (0,1.5*\bigradius);
        \draw[line width=2pt,->] (0,0)--(45:\littleradius);
        \draw[line width=2pt,->](0,0) -- (135:\bigradius); \node[above
        right] at (45:\littleradius/1.5) {\large\bf{$\varepsilon$}};
        \draw[line width=1pt,decoration={markings,
            mark=at position 0.07 with{\arrow[line width =2pt]{>}},%{latex}},
            mark=at position 0.17 with{\arrow[line width =2pt]{>}},
            mark=at position 0.27 with{\arrow[line width =2pt]{>}},
            mark=at position 0.35 with {\arrow[line width =2pt]{>}},%{latex}},
            mark=at position 0.47 with{\arrow[line width =2pt]{>}},
            mark=at position 0.53 with{\arrow[line width =2pt]{>}},%{latex}},
            mark=at position 0.6 with {\arrow[line width =2pt]{>}},%{latex}},
            mark=at position 0.65 with {\arrow[line width =2pt]{>}},%{latex}},
            mark=at position 0.7 with{\arrow[line width =2pt]{>}},
            mark=at position 0.8 with{\arrow[line width =2pt]{>}},
            mark=at position 0.85 with{\arrow[line width =2pt]{>}},
            mark=at position 0.955 with{\arrow[line width =2pt]{>}}},%{latex}}},
        postaction={decorate}]
        let
        \n1={asin(\gap/2/\bigradius)},
        \n2={asin(\gap/2/\littleradius)}
        in (180-\n1:\bigradius) -- (-180-\n2:\littleradius)
        arc(180-\n2:-180+\n2:\littleradius)--(-180+\n1:\bigradius)
        arc(-180+\n1:-90:\bigradius)--(3,-4)--(3,4)--(0,4)arc(90:(180-\n1):\bigradius);
        \coordinate (T) at (135:2); \node[above] at (T){$T$}; 
        \coordinate (H) at (1.5*\bigradius,0); \node[below] at (H){\Large\bf {x}};
        \coordinate (J) at (0,1.5*\bigradius); \node[left] at (J){$\Large\bf y$}; 
        \coordinate (C) at (\littleradius,0); \node[below right] at (C) {\Large\bf {C}};
        \coordinate (D) at ({180-asin(\gap/2/\littleradius)}:1); \node[above left] at (D) {$ \Large\bf B$}; 
        \coordinate (E) at ({-180+asin(\gap/2/\littleradius)}:1); \node[below left] at (E) {$\Large\bf D$}; 
        \coordinate (F) at ({180-asin(\gap/2/\bigradius)}:\bigradius); \node[above left] at (F) {$\Large\bf A$}; 
        \coordinate (G) at ({-180+asin(\gap/2/\bigradius)}:\bigradius); \node[below left] at (G) {$\Large\bf  E$}; 
        \coordinate (P) at (0,-4); \node[below right] at (P) {$\Large\bf F$}; \coordinate(Q) at (3,-4); \node[right] at (Q) {$\Large\bf G(\gamma-iT)$}; 
        \coordinate (R) at (3,4); \node[right] at (R) {$\Large\bf H(\gamma+iT)$}; 
        \coordinate (S) at (0,4);\node[above right] at (S) {$\Large\bf K$};
        \end{tikzpicture}
\end{document}

여기에 이미지 설명을 입력하세요

그리고 이것이 내가 찾고 있는 것입니다: 여기에 이미지 설명을 입력하세요

답변1

단순히 포인트를 통과하도록 경로를 변경했습니다.(45:\bigradius)

let
        \n1={asin(\gap/2/\bigradius)},
        \n2={asin(\gap/2/\littleradius)}
        in (180-\n1:\bigradius) -- (-180-\n2:\littleradius)
        arc(180-\n2:-180+\n2:\littleradius)--(-180+\n1:\bigradius)
        arc(-180+\n1:-45:\bigradius)--(45:\bigradius)arc(45:(180-\n1):\bigradius);

스크린샷

\documentclass[border=5mm]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc,decorations.markings,positioning}
\begin{document}
        \begin{tikzpicture}
        %configurable parameters
        \def\gap{0.4}
        \def\bigradius{4}
        \def\littleradius{1}
        %axes
        \draw[line width=2pt,->](-1.5*\bigradius,0) -- (1.5*\bigradius,0)
        (0,-1.5*\bigradius) -- (0,1.5*\bigradius);
        \draw[line width=2pt,->] (0,0)--(45:\littleradius);
        \draw[line width=2pt,->](0,0) -- (135:\bigradius); \node[above
        right] at (45:\littleradius/1.5) {\large\bf{$\varepsilon$}};
        \draw[line width=1pt,decoration={markings,
            mark=at position 0.07 with{\arrow[line width =2pt]{>}},%{latex}},
            mark=at position 0.17 with{\arrow[line width =2pt]{>}},
            mark=at position 0.27 with{\arrow[line width =2pt]{>}},
            mark=at position 0.35 with {\arrow[line width =2pt]{>}},%{latex}},
            mark=at position 0.47 with{\arrow[line width =2pt]{>}},
            mark=at position 0.53 with{\arrow[line width =2pt]{>}},%{latex}},
            mark=at position 0.6 with {\arrow[line width =2pt]{>}},%{latex}},
            mark=at position 0.65 with {\arrow[line width =2pt]{>}},%{latex}},
            mark=at position 0.7 with{\arrow[line width =2pt]{>}},
            mark=at position 0.8 with{\arrow[line width =2pt]{>}},
            mark=at position 0.85 with{\arrow[line width =2pt]{>}},
            mark=at position 0.955 with{\arrow[line width =2pt]{>}}},%{latex}}},
        postaction={decorate}]
        let
        \n1={asin(\gap/2/\bigradius)},
        \n2={asin(\gap/2/\littleradius)}
        in (180-\n1:\bigradius) -- (-180-\n2:\littleradius)
        arc(180-\n2:-180+\n2:\littleradius)--(-180+\n1:\bigradius)
        arc(-180+\n1:-45:\bigradius)--(45:\bigradius)arc(45:(180-\n1):\bigradius);
        \coordinate (T) at (135:2);
         \node[above] at (T){$T$}; 
        \coordinate (H) at (1.5*\bigradius,0);
         \node[below] at (H){\Large\bf {x}};
        \coordinate (J) at (0,1.5*\bigradius);
         \node[left] at (J){$\Large\bf y$}; 
        \coordinate (C) at (\littleradius,0);
         \node[below right] at (C) {\Large\bf {C}};
        \coordinate (D) at ({180-asin(\gap/2/\littleradius)}:1);            \node[above left] at (D) {$ \Large\bf B$}; 
        \coordinate (E) at ({-180+asin(\gap/2/\littleradius)}:1);           \node[below left] at (E) {$\Large\bf D$}; 
        \coordinate (F) at ({180-asin(\gap/2/\bigradius)}:\bigradius); 
        \node[above left] at (F) {$\Large\bf A$}; 
        \coordinate (G) at ({-180+asin(\gap/2/\bigradius)}:\bigradius); 
        \node[below left] at (G) {$\Large\bf  E$}; 
        \coordinate (P) at (0,-4);
        
         \node[below right] at (P) {$\Large\bf F$};
         \coordinate(Q) at (3,-4);
        \node[right] at (Q) {$\Large\bf G(\gamma-iT)$}; 
        \coordinate (R) at (3,4); 
        \node[right] at (R) {$\Large\bf H(\gamma+iT)$}; 
        \coordinate (S) at (0,4);
        \node[above right] at (S) {$\Large\bf K$};
        \end{tikzpicture}
\end{document}

관련 정보