绘制以下路径

绘制以下路径

我想绘制以下路径。但我不知道如何开始,因为我是新手,而且正在学习。有人能帮助我吗?在此处输入图片描述

答案1

使用该tikz包:

\documentclass[border=3.141592]{standalone}
\usepackage{tikz}
\usetikzlibrary{chains,
                positioning}

\begin{document}
    \begin{tikzpicture}[
node distance = 12mm,
  start chain = v going right,
     V/.style = {circle,draw, fill=blue, inner sep=1pt, 
            node contents={}, on chain},
every label/.append style = {font=\footnotesize\sffamily, text=blue}
                    ]
\foreach \x in {A, B, C, D}
    \node[V, label=\x];
%
\draw (v-1) to (v-2) 
      (v-1) to [bend left]  (v-2)
      (v-1) to [bend left=45]   (v-3)
      (v-1) to [bend right] (v-2)
      (v-1) to [bend right=45]  (v-2)
      (v-1) to [bend right=45]  (v-3)
      (v-2) to [bend left]  (v-3)
      (v-2) to [bend right] (v-3)
      (v-3) to [bend left]  (v-4)
      (v-3) to (v-4)
      (v-3) to [bend right] (v-4);
    \end{tikzpicture}
\end{document}

在此处输入图片描述

答案2

以下是一种实现此操作的方法pstricks

\documentclass[border=6pt, svgnames]{standalone}
\usepackage{pst-eucl}

\begin{document}

\begin{pspicture}(-1,-1.5)(10,1.5)
\sffamily\color{Blue} \psset{PtNameMath=false}
\pstGeonode[PosAngle={120,90,90,60}](0,0){A}(3,0){B}(6,0){C}(9,0){D}
\psline(A)(B) \psline(C)(D)
\pcarc[arcangle=40](A)(B)\pcarc[arcangle=60](B)(C)      \pcarc[arcangle=40](C)(D)
\pcarc[arcangle=-30](A)(B)\pcarc[arcangle=-30](B)(C)  \pcarc[arcangle=-30](C)(D)
\pcarc[arcangle=60](A)(C)\pcarc[arcangle=-60](A)(C)
\pcarc[arcangle=-60](A)(B)
\end{pspicture}

\end{document}

在此处输入图片描述

相关内容