Using tikz I would like to add a local coordinate frame to a figure (the plane jpeg). If I place the plane in the origin (0,0) it seems to work fine with the following code.
\documentclass[preview, convert]{standalone}
\usepackage{tikz}
\begin{document}
\usetikzlibrary{arrows}
\begin{tikzpicture}[
scale=1,
axis/.style={very thick, ->, >=stealth'}]
\draw[help lines] (0,0) grid (5,5);
\node[anchor=center,rotate=45,opacity=0.5]
(ego) at (0,0) {\includegraphics[scale=0.2]{latex/plane.jpeg}};
\begin{scope}[x={(ego.east)},y={(ego.north)}]
\draw [<->, thick]
(-0.5,1.5) node [left] (y_ego) {$y$} --
(-0.5,0) --
(1.5,0) node [below right] (x_ego) {$x$};
\end{scope}
\end{tikzpicture}
\end{document}
But when I move it to another place (3,3 in this case) the local frame does not get moved as I expected. What am I doing wrong?
How can I attach a local coordinate frame to a figure?
\documentclass{...}
and with\end {document}
on the end. – Zarko Mar 24 '17 at 16:33