If I extract coordinates with \pgfgetlastxy{}{}, I get changing results depending on the transformations I've applied to my draw (rotation, scale):
\documentclass[margin=0.5cm]{standalone}
\usepackage{tikz}
\newcommand{\myDraw}[2]{%
\begin{minipage}[t]{6cm}
\centering #1,#2\\
\begin{tikzpicture}[#1,#2]
\draw[->] (0,0) -- (3,0);
\draw[->] (0,0) -- (0,3);
\coordinate (A) at (1,3);
\draw[blue] (A) node {$+$} node[above right] {\footnotesize A(2,3)};
\path (A); \pgfgetlastxy{\xA}{\yA}; % Extract the coordinates of A
\draw[red] (canvas cs:x=\xA,y=\yA)
node {$+$} node[red,below right] {\parbox{2.5cm}{\footnotesize \textbackslash xA = \xA\\\textbackslash yA = \yA}};
\end{tikzpicture}
\end{minipage}}
\begin{document}
\myDraw{scale=1}{rotate=0}
\myDraw{scale=0.5}{rotate=0}
\myDraw{scale=1}{rotate=-20}
\end{document}

And yet, I want to get the coordinates of A in the current scope (i.e \xA = 1 and \yA = 3 in the example above) because I need to apply later some conditionals (like "if \xA < \xb then...").
I was thinking maybe of using a command like \pgftransformreset inside a group and then "smuggle" the non transformed coordinates out of the group. But I'm mostly an LaTeX/TikZ end user and I don't know how to achieve that.


Acoords always fixed? – percusse Aug 29 '13 at 21:35