Code:
\documentclass[a4paper, 11pt, oneside, ngerman]{book}
\usepackage{babel}
\usepackage[latin9]{inputenc} %Dateikodierung Windows
\usepackage[T1]{fontenc} %Aktiviert EC-Schriftarten
\usepackage[usenames,dvipsnames]{xcolor} %Zusätzliche Farben
\usepackage{colortbl} %Farben in Tabellen
\usepackage{graphicx} %Paket für Grafiken
\usepackage{amsmath, amsthm, amssymb, mathtools} %Pakete für Mathematik
\usepackage[version=3]{mhchem} %Chemische Formeln
\usepackage{tikz} %Für Zeichnungen von Graphen
\usetikzlibrary{fit}
\usepackage{pgfplots} %Für Graphen und Funktionen
\pgfplotsset{compat=newest} %Version einstellen
\pgfplotsset{x tick label style={/pgf/number format/use comma},
x tick label style={/pgf/number format/1000 sep=},
y tick label style={/pgf/number format/use comma},
y tick label style={/pgf/number format/1000 sep=},
scaled ticks=false,
xticklabel style={/pgf/number format/fixed,/pgf/number format/precision=4},
yticklabel style={/pgf/number format/fixed,/pgf/number format/precision=4}}
\pgfplotsset{axis background/.style={fill=cyan!6!yellow!27!}} %Hintergrundfarbe für alle Tabellen
\usepgfplotslibrary{units} %aktiviert die Einheiten unter pgfplots
\begin{document}
\begin{figure}[htb]
\centering
\begin{tikzpicture}
\begin{axis}[
scale only axis,
xlabel=Flugzeit, x unit=s,
ylabel=Masse, y unit=kg,
width=0.8\textwidth, height=0.3\textheight,
%ymin=10, ymax=47,
axis y line*=left,
legend style={name={leg1},at={(0.96,0.96)},anchor=north east,legend columns=-1,draw=none},
enlarge x limits=0.01, enlarge y limits=0.01]
\addplot[Blue, thick] {x^3 +8*x};
\addlegendentry{T01\_m}
\end{axis}
%
\begin{axis}[
axis background/.style={fill=none},
scale only axis,
ylabel=Druck, y unit=bar,
width=0.8\textwidth, height=0.3\textheight,
%ymin=5, ymax=25,
axis y line*=right,
axis x line=none,
legend style={name={leg2},at={(leg1.south west)},anchor=north west,legend columns=-1,draw=none},
enlarge x limits=0.01, enlarge y limits=0.01]
\addplot[Red, thick] {x^2 -4*x};
\addlegendentry{T01\_p}
\end{axis}
\node[draw, fit=(leg1)(leg2)]{};
\end{tikzpicture}
\end{figure}
\end{document}
Vielen Dank schon jetzt für eure Hilfe.
Lesezeichen