如何在相图上画螺旋?

如何在相图上画螺旋?

我知道在非线性动力学的注释中很容易画出螺旋线。以下是一些示例:

在此处输入图片描述

在此处输入图片描述

答案1

你可以使用 TikZ。以下是示例:

在此处输入图片描述

但我以前从未使用过它,所以也许有比将箭头粘在一起更好的方法,这里是代码:

\documentclass{standalone}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{width=6cm,compat=newest}

%for arrows in the middle of the line
\usetikzlibrary{decorations.markings}
\tikzset{->-/.style={decoration={
  markings,
  mark=at position #1 with {\arrow{>}}},postaction={decorate}}}

\begin{document}
 \begin{tikzpicture}
  %straight lines
  \draw[->-=.4] (0,0) to (-1,0);
  \draw[->-=.6] (0,-1) to (0,0); 
  %arcs on the left
  \draw[->-=.5] (-0.3,1) to [out=-90,in=0] (-1,0.3);
  \draw[->-=.5] (-0.3,-1) to [out=90,in=0] (-1,-0.3);
  %big circle from the bottom to the top
  \draw[->-=.5] (0.3,-1) to [out=90,in=200] (0.8,-0.3);
  \draw (0.8,-0.3) to [out=20, in =-90] (1.5,0.5) to [out=90, in=0] (0.7,1.3) to [out=180,in=90] (0,0.5);
  \draw[->-=.2]  (0,0.5) to (0,0);
  %inward spiral
  \draw[->-=.8]  (0,0) to (0.5,0);
  \draw[->] (0.5,0) to [out=0, in=-90] (1.1,0.5) to [out=90, in=0] (0.7,0.9) to [out=180, in=90] (0.4,0.6) to [out=-90, in=180] (0.6,0.4) to [out=0,in=-90] (0.75,0.6);
 \end{tikzpicture}
\end{document}

检查你TikZ 的介绍非常简单。为了得到线中间的箭头,我在 Google 上搜索了“tikz 线中间的箭头”。

相关内容