\usepackage{lmodern} % Vektorschrift
\renewcommand{\familydefault}{\sfdefault} % Serifenlose Schrift
\usepackage{sansmath} % Mathe-Schrift ohne Serifen
\sansmath % aktiviert serifenlose Matheschrift
\usepackage{microtype} % harmonische Typenverteilung
%\usepackage{hyperref}\begin{figure}[htb]
\begin{subfigure}{0.5\textwidth}
\begin{tikzpicture}
\begin{axis}[
%xtick=\empty,
xlabel={x},
ylabel={y},
ymax=1.1,
grid=major,
domain=0:5,
samples=100,
axis lines=left,
legend pos=south east,
]
\addplot[red,line width=1.5pt] {1-e^-x};
\addlegendentry{1};
% \addplot[blue, dashed]{1};
\addplot[blue,line width=1.5pt]{0.8*x};
\addlegendentry{2};
\addplot[gray, dashed,line width=1.5pt]{1};
\end{axis}
\end{tikzpicture}
\end{subfigure}%
\begin{subfigure}{0.5\textwidth}
\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,line width=1.5pt] {x^2};
\addlegendentry{1}
\addplot[blue,line width=1.5pt] {x};
\addlegendentry{2}
\end{axis}
\end{tikzpicture}
\end{subfigure}
\caption{Veranschaulichung linearer Zusammenhang}
\end{figure}Bitte helfen

