以下是我所拥有的:
如您所见,路径在两个点周围创建了一个“椭圆”,但我想要一个圆形。
这是我的代码:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows}
\begin{document}
\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=3cm,
thick]
\filldraw[black] (0,0) circle (2pt);
\filldraw[black] (0,3) circle (2pt);
\path
(0,0) edge [bend left, out=-90,in=-90] node[right] {$C_1$} (0,3)
(0,0) edge [bend right, out=90,in=90] node[left] {$C_2$} (0,3);
\end{tikzpicture}
\end{document}
答案1
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,
decorations.markings}
\begin{document}
\begin{tikzpicture}[>=Straight Barb,
decoration={markings,% switch on markings
mark=between positions 0.25 and 0.75 step 0.25 with {\arrow[thick]{>}},
},
label distance = 3mm]
\draw[postaction={decorate}] (0,0) arc (-90:90:1.5);
\draw[postaction={decorate}] (0,0) arc (270:90:1.5);
\filldraw[black] (0,0) circle (2pt);
\filldraw[black] (0,3) circle (2pt);
\coordinate[label=right:"$C_1$"] (c1) at ( 1.5,1.5);
\coordinate[label=left :"$C_2$"] (c2) at (-1.5,1.5);
\end{tikzpicture}
\end{document}