我想在 latex 中绘制一个 2D 向量平面。本质上是以下两幅图的组合。我可以用 和 绘制第一幅图\path
,\draw
用 绘制第二幅图quiver
。但是,我似乎无法同时完成这两项工作。我该怎么做呢?
图片 1
\begin{tikzpicture}
\draw[black,shorten >= 3pt,shorten <= 3pt]
(0,0) to[out=-10,in=150] (6,-2) -- (12,1) to[out=150,in=-10] (5.5,3.7) -- cycle;
(0,0) to[out=-10,in=150] (6,-2) -- (12,1) to[out=150,in=-10] (5.5,3.7) -- cycle;
\end{tikzpicture}
图片 2
\begin{tikzpicture}
\begin{axis}[
xmin = -4, xmax = 4,
ymin = -4, ymax = 4,
zmin = 0, zmax = 1,
axis equal image,
xtick distance = 1,
ytick distance = 1,
view = {20}{90},
scale = 1.25,
]
\addplot3[
quiver = {
u = {sin y},
v = {sin x},
scale arrows = 0.05,
},
quiver/colored = {blue},
-stealth,
domain = -4:4,
domain y = -4:4,
] {0};
\end{axis}
\end{tikzpicture}