\begin{tikzpicture}
\begin{axis}[
xlabel={x},
%ylabel={y},
ymax=1.1,
grid=major,
domain=0:5,
samples=100,
axis lines=left,
legend pos=south east,
]
\addplot[red,domain=0:1,line width=1.5pt] {x^2};
\addlegendentry{2}
\addplot[blue,domain=0:1,line width=1.5pt] {x};
\addlegendentry{$1$}
\end{axis}
\end{tikzpicture}Aktuell sind noch zwei beliebige Graphen im Diagramm (nicht beachten)

