我正在尝试使用 TikZ 创建 3-D 参数曲线。我还想在曲线上添加装饰箭头。但是,我收到一条错误消息,提示尺寸太大。那么有什么方法可以消除错误消息吗?以下是代码:
\documentclass{standalone}
\usepackage{amssymb, amsmath, amsthm}
\usepackage{mathrsfs, mathtools, commath}
\usepackage{tikz, pgfplots}
\pgfplotsset{compat=1.15}
\definecolor{CPgreen}{RGB}{21, 71, 52}
\definecolor{CPgold}{RGB}{198, 146, 20}
\definecolor{Sealgray}{RGB}{84, 88, 90}
\definecolor{Skyblue}{RGB}{181, 227, 216}
\usetikzlibrary{arrows}
\usetikzlibrary{decorations.markings}
\usepackage{tikz-3dplot}
\tdplotsetmaincoords{70}{110}
\begin{document}
\begin{center}
\begin{tikzpicture}[tdplot_main_coords,
line cap =round,>=latex,line width=0.5pt,font=\scriptsize]
\node (O) at (0,0,0) {};
\draw[->] (O.center) -- (4,0,0) node[anchor=north east]{$x$};
\draw[->] (O.center) -- (0,3.75,0) node[anchor=west]{$y$};
\draw[->] (O.center) -- (0,0,3.75) node[anchor=south]{$z$};
\begin{scope}[decoration={
markings,
mark=at position 0.15 with {\arrow{>}},
mark=at position 0.5 with {\arrow{>}},
mark=at position 0.85 with {\arrow{>}}}]
\draw[postaction={decorate},line width = 0.825,color=CPgold] plot [variable=\t, domain=0:2*pi, samples=100, smooth]
({2*cos(deg(\t))},{1.5*sin(deg(\t))},{\t-1});
\end{scope}
\end{tikzpicture}
\end{center}
\end{document}
如果我使用 PGF,装饰箭头会起作用,但是 PGF 的轴与我的轴不对齐。
这是 Overleaf 链接:https://www.overleaf.com/4452138147qnvxcwtxmgbn
谢谢您的帮助。