我正在尝试用乳胶画一些类似的东西。
这就是我能做的
\begin{tikzpicture}[line/.style={-},thick]
\node (a) at (1,1) {1};
\node (b) at (2,1) {2};
\node (c) at (3,1) {3};
\node (d) at (4,1) {4};
\node (e) at (5,1) {5};
\node (f) at (6,1) {6};
\node (g) at (7,1) {7};
\node (h) at (8,1) {8};
\path [bend left, line] (a) edge (c);
\path [bend left,line] (c) edge (h);
\path [bend left,line] (e) edge (h);
\end{tikzpicture}
但输出结果如下:
这不是我想要的效果。我该如何改善我的图片?
答案1
好点吗?
\documentclass[tikz,border=3.14mm]{standalone}
\begin{document}
\begin{tikzpicture}
\foreach \i in {1,...,8}
\coordinate[circle,inner sep=0pt,fill=black,minimum size=2pt,label=below:{\i}] (\i) at (\i,0) {};
\foreach \A/\B in {1/3,3/8,5/7}
\draw (\A) to[bend left=70] (\B);
\end{tikzpicture}
\end{document}