Tikz:參數曲線末端的箭頭正確嗎?

Tikz:參數曲線末端的箭頭正確嗎?
\documentclass[11pt]{amsart}
 \usepackage{tikz}
 \begin{document}
\begin{tikzpicture} [scale=4]
\draw[domain=0:0.4, smooth, variable=\t, samples=200, ->] plot({(1/sqrt(2)*(\t-\t^3)},
{(1/sqrt(2)*(\t+\t^3)});
\draw[domain=0:0.4, smooth, variable=\t, samples=200, ->] plot({\t}, {-\t^3});
\end{tikzpicture}
\end{document}

您好,箭頭只會指向我的參數曲線的末端。有什麼辦法可以解決這個問題嗎?

編輯:刪除平滑選項修復了它。我認為我需要它的原因很明顯。謝謝,傑西!

答案1

廣泛的測試表明,刪除該smooth選項可以解決問題。

在此輸入影像描述

程式碼

\documentclass[border=10pt]{standalone}%[11pt]{amsart}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture} [scale=4]
\draw[domain=0:0.4, smooth, variable=\t, samples=200, ->] plot({(1/sqrt(2)*(\t-\t^3)},
{(1/sqrt(2)*(\t+\t^3)});
\draw[domain=0:0.4, smooth, variable=\t, samples=200, ->] plot({\t}, {-\t^3});
\end{tikzpicture}
\begin{tikzpicture} [scale=4]
\draw[domain=0:0.4, variable=\t, samples=200, ->] plot({(1/sqrt(2)*(\t-\t^3)},
{(1/sqrt(2)*(\t+\t^3)});
\draw[domain=0:0.4, variable=\t, samples=200, ->] plot({\t}, {-\t^3});
\end{tikzpicture}
\end{document}

相關內容