I am trying to position nodes on a parabola curve. However, it seems tikz cannot calculate the midway positions. Neither of the following examples works:
\begin{tikzpicture}
\draw (-1,0) parabola[parabola height=2cm] (3,0)
node[sloped, above, pos=0.5] {0.5};
\end{tikzpicture}
\begin{tikzpicture}[to path={
parabola[parabola height=2cm] (\tikztotarget) \tikztonodes}]
\draw (0,0) to
node[above, sloped] {0.5} (3,0);
\end{tikzpicture}
Any suggestions? Thanks!