
この図をプロットしたいのですが、これが私のコードと結果です。図にマークした垂直線を削除し、点 $q pi/2$ を円弧から離して、元の図のように円弧にくっつかないようにしたいと思います。。
\begin{tikzpicture}
\draw[fill=gray!10]
(-3,-3) -- (-3,3) -- (0,0) -- cycle;
\draw[very thick, ->] (-3,0) -- (3,0) node[right] {Re};
\draw[very thick, ->] (0,-3) -- (0,3.5) node[above] {Im};
\draw[very thick, <->]
(0:1) arc[start angle=0, end angle=135, radius=1]
node[midway, right] {$q\frac{\pi}{2}$};
\node[align=center] at (2.3,-1) {unstable region};
\node[align=center] at (-2,-1) {stable region};
\end{tikzpicture}
答え1
灰色の三角形を閉じたくない場合は、パスを閉じないでください。
-- cycle
xshift=
たとえば、とを使用してノードをシフトできますyshift=
。あるいは、outer sep=
ノードの を増やすこともできます。
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[fill=gray!10] (-3,-3) -- (0,0) -- (-3,3);
\draw[very thick, ->] (-3,0) -- (3,0) node[right] {Re};
\draw[very thick, ->] (0,-3) -- (0,3.5) node[above] {Im};
\draw[very thick, <->]
(0:1) arc[start angle=0, end angle=135, radius=1]
node[midway, right,xshift=0.25cm,yshift=0.25cm] {$q\frac{\pi}{2}$};
\node[align=center] at (2.3,-1) {unstable region};
\node[align=center] at (-2,-1) {stable region};
\end{tikzpicture}
\end{document}