In my example, I have to simple curves y = sqrt(x) and y = x. I would like to be able to attach a label along each curve, say at the middle of the curve. Right now, I am doing it by trial and error until it looks "right." How may I use node positioning to achieve what I have?
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=2,>=latex,x=1.5cm]
\begin{scope}
\draw[->] (-0.2,0) -- (1.5,0) node[above left]{\footnotesize $x$};
\draw[->] (0,-0.2) -- (0,1.5) node[below right]{\footnotesize $y$};
\draw[-,domain=0:1,samples=250] plot (\x,{sqrt(\x)});
\draw[-,domain=0:1,samples=250] plot (\x,{\x});
\node at (0.35,0.75) {\footnotesize $y=\sqrt{x}$};
\node at (0.65,0.5) {\footnotesize $y=x$};
\end{scope}
\end{tikzpicture}
\end{document}



