更优美的曲线

更优美的曲线

有没有办法在下图中制作一条更漂亮的曲线,连接不同图的两个节点?

图表

这是我正在使用的代码:

\documentclass{scrartcl}
\usepackage{amsmath,amsthm,amssymb,latexsym,amsfonts}
\usepackage{mathtools}
\usepackage[usenames, dvipsnames,svgnames]{xcolor}
\usepackage{tkz-graph}
\usepackage{tikz}
\usetikzlibrary{intersections, decorations.pathreplacing,shapes,shapes.geometric,hobby,patterns,babel,matrix,calc,snakes,backgrounds,shapes.multipart,shadows.blur,decorations.markings,positioning,bending,fit}

\begin{document}

\begin{tikzpicture}
        \SetGraphUnit{1.6}
        \SetVertexNormal[MinSize =6pt,
        LineWidth = .1pt,
        LineColor = Goldenrod,%
        FillColor = Goldenrod]
        \tikzset{EdgeStyle/.style = {color = Goldenrod}}
        \SetVertexMath
        \SetVertexLabelOut
        \begin{scope}[rotate=45]
        \Vertices[Lpos=45]{circle}{v_3,v_2,v_1,v_4}
        \coordinate (v_5) at (intersection of v_1--v_3 and v_2--v_4);
        \Vertex[Node,Lpos=45]{v_5}
        \Edges(v_4,v_3,v_2,v_1,v_4)
        \Edges(v_1,v_5,v_4)
        \end{scope}
        \draw [->] plot [smooth] coordinates { (1.225,1.125) (3.25,1.65) (5.7,2.55) (6.8,1.15) (6.525,-.395)};
        \Vertex[x=6.525,y=-.495]{4}
        \Vertex[x=3.475,y=-.495,Lpos=180]{3}
        \Vertex[x=5,y=-1.6,Lpos=-90]{5}
        \Vertex[x=5.9375,y=1.295,Lpos=90]{2}
        \Vertex[x=4.0625,y=1.295,Lpos=90]{1}
        \Edges(1,2,4,3,1,5,2)
        \node[] at(3.475,2.1) {\Large$H$};
        \node[] at(-1.75,2.1) {\Large$G$};
        \draw [->] plot [smooth] coordinates { (-1.125,-1.233) (1.35,-1.95) (4.05,1.19)};
    \end{tikzpicture}

\end{document}

下图中的圆圈部分使得整个线条看起来不流畅,我想要一些更自然的东西。

在此处输入图片描述

预先感谢您的任何帮助。

答案1

您可以使用tension。我无法编译您的代码,因为似乎有很多自定义的东西。以下是相关部分,其中改进的曲线用红色表示:

\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw [->] plot [smooth,mark=*] coordinates { (1.225,1.125) (3.25,1.65) (5.7,2.55) (6.8,1.15) (6.525,-.395)};
\draw [->] plot [smooth,mark=*] coordinates { (-1.125,-1.233) (1.35,-1.95) (4.05,1.19)};
\draw [->,thick,red] plot [smooth, tension=0.8] coordinates { (1.225,1.125) (3.25,1.65) (5.7,2.55) (6.8,1.15) (6.525,-.395)};
\draw [->,thick,red] plot [smooth, tension=1] coordinates { (-1.125,-1.233) (1.35,-1.95) (4.05,1.19)};
\end{tikzpicture}
\end{document}

改善曲线

相关内容