答案1
像这样(网格仅供参考点)?
代码:
\documentclass[10pt,a4paper]{article}
\usepackage{tikz}
\usetikzlibrary{decorations.markings}
\begin{document}
\begin{tikzpicture}[scale=2,decoration={markings,
mark= between positions 0.2 and 0.8 step 30mm
with {\arrow{latex}}}
]
\draw[gray!20] (-5,-3) grid[step=.5] (3,3);
\draw[postaction={decorate},line width=3pt] (-4.5,1)--(-1.73,1);
\draw[postaction={decorate},line width=3pt] (-1.73,1) arc (150:-150:2);
\draw[postaction={decorate},line width=3pt] (-1.73,-1)--(-4.5,-1);
\draw[-latex] (-5,0)--(2.5,0) node[right] () {$x$};
\draw[-latex] (0,-2.5)--(0,2.5) node[above] () {$y$};
\end{tikzpicture}
\end{document}