Is there any workaround to use [pos=] or [midway] option in a node following a "plot" to annotate the path? The following minimal example will have the node text missing:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[very thin,color=gray] (-0.1,-0.1) grid (2.9,4.1);
\draw[->] (-0.2,0) -- (3.2,0) node[right] {$x$};
\draw[->] (0,-0.2) -- (0,4.2) node[above] {$f(x)$};
\draw[domain=0:3] plot (\x,{\x^2}) node[midway, sloped] {midway?};
\end{tikzpicture}
\end{document}

transform shape– Alain Matthes Sep 20 '12 at 04:51