Possible Duplicate:
How to label a path drawn using tikz with \draw plot?
Consider plotting a parabola using the following code:
\begin{scope}[domain=-2:2]
\draw[<->,color=green,line width=1pt] plot[id=func1] function{x*x} node[right]{$t$};
\end{scope}
This code will label the parabola right to the upper right end of it. However, if I want to put the label somewhere in the middle, I tried the following:
\begin{scope}[domain=-2:2]
\draw[<->,color=green,line width=1pt] plot[id=func1] function{x*x} node[pos=0.4]{$t$};
\end{scope}
which produces some unexpected positioning of the label. Is there a nice way out of it?
