This question asks how to match coordinate systems in PGFplots from ordered pair to ordered pair. What I would like to do, is mix coordiante systems within an ordered pair, for eaxmple, use axis cs for x, and rel axis cs for y. How would I do so?
\documentclass{article}
\RequirePackage{tikz}
\usetikzlibrary{calc}
\RequirePackage{pgfplots}
\RequirePackage{pgffor}
\pgfplotsset{compat=newest}
\begin{document}
\begin{tikzpicture}
\begin{axis}[ hide axis,
scale only axis,
xmin=0,xmax=4,ymin=-0.5,ymax=1,
height=1cm,width=2cm,at={(0cm,0cm)}, clip=false]
\draw[red] (0,0) -- (1,1) -- (2,-0.5) -- (3,1) -- (4,0);
\node[anchor=north] at (rel axis cs: 0.5, 0) {min} ;
% \node[anchor=north] at ((axis cs: 2), (rel axis cs: 0)) {min} ; % no dice
% \node[anchor=north] at ({axis cs: 2}, {rel axis cs: 0}) {min} ; % no dice
\end{axis}
\end{tikzpicture}
\end{document}

(X)withaxis csand extract thexcoordinate of(X). Then set a coordiante(Y)withrel axis csand simlarly extract theycoordinate of(Y). Then(x,y)is the desired point. You can usepgflastxyas in Extrax x,y coordinate of an arbitrary point to extract a coordinate from a point. – Peter Grill Nov 10 '21 at 17:08