This is a continuation of my previous question, but now I want to use pgfplots.
In an axis environment, I add a node using the axes coordinate system.
I would like to use let to retrieve the coordinates of a node in the axes coordinate system.
In the example below:
\documentclass{standalone}
\usepackage{tikz,pgfplots}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}
\begin{axis}[xmin=0,xmax=10,ymin=0,ymax=10]
\node [circle,fill,inner sep=2pt] (d1) at (axis cs:4,2) {};
\draw let \p1=(d1) in (d1) coordinate[label=below:\x1]{} ;
\end{axis}
\end{tikzpicture}
\end{document}
The label, which should give me the horizontal coordinate of the node, currently reads: 77.999988pt.
Where does that number come from?
Since the node is placed at (4,2), I would like instead get the label as 4 times 28.45274pt = 113.81096pt. (I would then transform it for display.)


width. – Jun 06 '18 at 18:18