
からtikzpicture 環境内に外部画像を埋め込むにはどうすればいいですか?\includegraphics
Ti内で使用できることがわかりますけZ 環境を使用します\node
。
しかし、私の環境には(matlabで生成されたプロットからTiに変換された)tikzpicture
が含まれていますaxis
けZ) であり、画像の位置ではなくこの軸に基づいてノードを配置したいと考えています。
それは可能ですか?
以下は私のコードの簡略版です。現在、図を配置するために を使用していますが\node[inner sep=0pt] (test) at (14,10)
、これは位置ではなく図の位置を指すものであると理解していますaxis
。
\begin{tikzpicture}
\begin{axis}[%
xmin=0,
xmax=5,
tick align=outside,
xlabel={x},
ymin=-11,
ymax=0.5,
ylabel={y},
zmin=0,
zmax=20,
zlabel={z},
view={-57.4}{14.4},
axis background/.style={fill=white},
legend style={at={(1.03,1)}, anchor=north west, legend cell align=left, align=left, draw=white!15!black}
]
\addplot3 [color=gray]
table[row sep=crcr] {%
0 0 0\\
4 0.03 17\\
};
\node[inner sep=0pt] (test) at (14,10)
{\includegraphics[width=.25\textwidth]{harmonicfit}};
\end{axis}
\end{tikzpicture}%