Is it possible to get and store a specific y value from a plot coordinate, so that it can be printed somewhere else (for example inside a node)?
\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.17}
\usepgfplotslibrary{fillbetween}
\begin{filecontents}{data-fake5.dat}
x y
1 0
2 3
3 1
\end{filecontents}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
axis x line*=bottom,
axis y line*=left,
]
\addplot[name path=myplot] table[x=x,y=y] {data-fake5.dat};
%\node at (1,1.5){\printy{myplot}{2}}; %this should print the y value of the plot 'myplot` associated with x=2, which is 3
\end{axis}
\end{tikzpicture}
\end{document}
desired result:

pgfplotstablegetelem) was what i was looking for. Thank you very much. I would gladly accept your answer, should you provide one. – d-cmst Oct 13 '20 at 15:00