
비선형 역학의 음표에서 나선형을 쉽게 그리는 것을 알고 있습니다. 여기 몇 가지 예가 있어요.
답변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에 대한 최소한의 소개. 줄 중간에 화살표를 얻으려면 "tikz arrows in the line of line"을 검색했습니다.