关于 tikz 中带装饰的地块大小的警告

关于 tikz 中带装饰的地块大小的警告

我正在绘制一些函数,并在它们上面添加一个“>”装饰。这通常有效,但在一种情况下,它会发出警告

我无法处理大于 19 英尺的尺寸。继续,我将使用我能使用的最大值。

相同的图,没有装饰说明,没有给出任何警告。我改变了线宽和颜色,这样第二条线就在第一条线上方可见。

警告不会停止编译,但我想知道问题出在哪里,并在可能的情况下纠正它。

这是“问题”的 MWE。

\documentclass[preview]{standalone}

\usepackage{tikz}
\usetikzlibrary{arrows.meta,decorations.markings,decorations.pathmorphing}


\begin{document}
\begin{tikzpicture}[xscale=1,yscale=1]

% causes the warning 
% I can't work with sizes bigger than 
% about 19 feet.
% Continue and I'll use the largest value 
% I can.
\draw[domain=1:2.297, smooth, variable=\x,line
width=1.5,decoration={markings,
    mark=at position 0.5 with {\arrow{<}}},postaction={decorate}] plot ({\x}, {4/\x^(5/3)});

% draws the same function as above, 
% with no decoration. Causes no warning
% The different line width and color do not
% affect the problem
\draw[domain=1:2.297, smooth, variable=\x,line
width=0.5,yellow] plot ({\x}, {4/\x^(5/3)});

\end{tikzpicture}
\end{document}

相关内容