这是我的曲线
我的LaTeX
代码是
\documentclass{standalone}
\usepackage{tikz}
%\usetikzlibrary{decorations.pathmorphing}
\begin{document}
\begin{tikzpicture}
%\pgfmathsetseed{666666}
\node (Koo) at (1.5,2) {$K_{\infty}$};
\node (S-) at (-0.6,5.1) {$S_-$};
\node (S+) at (0.6,4) {$S_+$};
\node (r) at (1.2,3) {$r$};
\node (l) at (-1.59,4.2) {$\ell$};
\node (e) at (0.2,6.2) {$e$};
\draw (0,0)node[right] {$A$} -- (2,6) node[right] {$B$} -- (-2,6) node[left] {$C$} -- (0,0) ;
%\draw[red,->, decorate, decoration={random steps, segment length=2cm, amplitude=2cm}]
\draw[red,->]
plot [smooth, tension=0.6] coordinates
{ (0,0.02) (0,0.35) (0.1,0.6) (-0.15,1) (0.1,1.1) (-0.2,1.25) (0.56,1.8)
(-0.85,2.6)
(0.98,3)
(-1.39,4.2)
(0.7,4.75) (0.2,6)
};
\end{tikzpicture}
\end{document}
我希望这条曲线像复杂的布朗运动一样移动,
所以我添加decorate, decoration={random steps,segment length=2pt,amplitude=2pt}
(上面代码中的注释)。
但无论长度和振幅的值是什么,总是存在一个错误:尺寸太大。
我通过放大上述LaTeX
代码中的所有坐标来解决这个问题,下面的图片就是结果。
符号A、B、C、...、曲线宽度、红色曲线箭头太小。
是否有可能使曲线成为像复杂布朗运动那样的分形曲线?
答案1
虽然不是完美的解决方案,但也许你可以使用它。你可以把所有东西都放大:
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{decorations.pathmorphing}
\begin{document}
\begin{tikzpicture}[scale=3, very thick, font=\huge]
\pgfmathsetseed{666666}
\node (Koo) at (1.5,2) {$K_{\infty}$};
\node (S-) at (-0.6,5.1) {$S_-$};
\node (S+) at (0.6,4) {$S_+$};
\node (r) at (1.2,3) {$r$};
\node (l) at (-1.59,4.2) {$\ell$};
\node (e) at (0.2,6.2) {$e$};
\draw (0,0) node[right] {$A$} -- (2,6) node[right] {$B$} -- (-2,6) node[left] {$C$} -- cycle;
\draw[red,arrows={->[length=10pt]}, decorate, decoration={random steps, segment length=2pt, amplitude=2pt}]
plot [smooth] coordinates {
(0,0.02) (0,0.35) (0.1,0.6) (-0.15,1) (0.1,1.1) (-0.2,1.25) (0.56,1.8)
(-0.85,2.6)
(0.98,3)
(-1.39,4.2)
(0.7,4.75) (0.2,6)
};
\end{tikzpicture}
\end{document}