I'd like to do a drawing for a recursive sequence :
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{center}
\begin{tikzpicture}[rectangle, rounded corners=2pt, minimum
width=1cm, minimum height=0.6cm, >=latex]
\node[draw] (u0) at (0,0) {$u_0$};
\node[draw] (u1) at (3,0) {$u_1=f(u_0)$};
\draw[->] (u0) to[bend right=50] (u1) node[midway, below]{$f$};
\node[draw] (u2) at (6,0) {$u_2=f(u_1)$};
\draw[->] (u1) to[bend right=40] (u2) node[midway, below]{$f$};
\end{tikzpicture}
\end{center}
\end{document}
But I get all the "$f$" labels below the (u0) node.
Can someone explain what I am doing wrong ?
Thanks.
node...to immediately afterto[...]. I'm fairly sure similar questions have been asked before, I'll see if I can find one with more explanations. – Torbjørn T. Sep 07 '19 at 12:24