\documentclass[fontsize=12pt]{scrartcl} % Art des Textes
\usepackage[utf8]{inputenc} % Eingabecodierung
\usepackage[T1]{fontenc} % Ausgabeentcoding
\usepackage[ngerman]{babel} % Deutsche Einstellungen
\usepackage{subcaption} % Bildbeschreibung; Ersatzpaket lädt caption
\usepackage{pgfplots} % Diagramme zeichnen
\usepackage{filecontents} % für Diagramme Datenliste erstellen
\usepackage[locale=DE]{siunitx} % SI Einheiten verwenden
\usepackage{showframe} % zeigt das Seitenlayout
%================================Packages==================================%
\pgfplotsset{
compat=newest,% https://texwelt.de/wissen/fragen/19163
/pgf/number format/.cd,
1000 sep={\,},% siehe Abschnitt 92.1 in pgfmanual.pdf
min exponent for 1000 sep=4
}
\begin{document}
\begin{filecontents}{Daten_Ersatzspannungsquelle.csv}
Ik U0 UR100 UR33 IR100 IR33 Ik5
0 5.05 0 0 0 0 0
204.70 0 4.04 2.91 40.80 87.30 1010
\end{filecontents}
\begin{figure}[ht]
\centering
\begin{tikzpicture}
\begin{axis}[
width=0.7\textwidth,height=0.25\textheight,
% grid=major,
xlabel = Strom/\si{\milli\ampere},
ylabel = Spannung/\si{\volt},
xmin=0, xmax=240,
ymin=0, ymax=6,
axis y line=center,
axis x line=middle,
label style={at={(ticklabel cs:0.5)},anchor=near ticklabel,sloped}
]
\addplot[very thick] table [x=Ik, y=U0] {Daten_Ersatzspannungsquelle.csv}
node[above,pos=0.03] {$U_{0}$}node[above,pos=1] {$I_{K}$};
\addplot table [x=IR100, y=UR100] {Daten_Ersatzspannungsquelle.csv}
node[right,pos=1] {AP ($R_{L}= \SI{100}{\ohm}$)};
\addplot table [x=IR33, y=UR33] {Daten_Ersatzspannungsquelle.csv}
node[right,pos=1] {AP ($R_{L}= \SI{33}{\ohm}$)};
\addplot[dashed,very thick,blue] table [x=Ik5, y=U0] {Daten_Ersatzspannungsquelle.csv}
node[above,pos=0.1] {(Frage 2)};
\end{axis}
\end{tikzpicture}
\caption{Kennlinie einer Ersatzspannungsquelle}
\label{diag:Kennlinie einer Ersatzspannungsquelle}
\end{figure}
%Neues Diagramm reinkopiert
\begin{filecontents}{Daten_Ohmsches_Gesetz_Versuch_1.csv}
U R100 R330
0 0 0
2 20.06 6.07
4 40.2 12.07
6 59.1 18.27
8 79.5 24.34
10 98.0 30.28
12 118.3 36.32
\end{filecontents}
\begin{filecontents}{Daten_Ohmsches_Gesetz_Versuch_2.csv}
R U12V U8V U4V
100 118.20 79.30 39.60
220 54.06 36.69 18.33
330 36.32 24.04 12.15
470 25.73 17.07 8.61
680 17.67 11.70 5.91
1000 12.10 8.03 4.05
\end{filecontents}
\begin{figure}[htb]
\centering
\begin{minipage}[b]{0.48\textwidth}
\centering
\begin{tikzpicture}
\begin{axis}[
width=\textwidth,%height=0.3\textheight,
grid=major,
xlabel = Spannung/\si{\V},
ylabel = Strom/\si{\mA},
xmin=0, xmax=15,
ymin=0, ymax=130,
axis y line=center,
axis x line=middle,
label style={at={(ticklabel cs:0.5)},anchor=near ticklabel,sloped}
]
\addplot table [x=U, y=R100] {Daten_Ohmsches_Gesetz_Versuch_1.csv}
node[above] {\SI{100}{\ohm}};
\addplot table [x=U, y=R330] {Daten_Ohmsches_Gesetz_Versuch_1.csv}
node[above] {\SI{330}{\ohm}};
\end{axis}
\end{tikzpicture}
\subcaption{der Spannung}
\label{diag:Stromkennlinie in Abhängigkeit der Spannung}
\end{minipage}
\space
\begin{minipage}[b]{0.48\textwidth}
\centering
\begin{tikzpicture}
\begin{axis}[
width=\textwidth,%height=0.3\textheight,
grid=major,
xlabel = Widerstand/\si{\volt},
ylabel = Strom/\si{\milli\ampere},
xmin=0, xmax=1100,
ymin=0, ymax=130,
axis y line=center,
axis x line=middle,
label style={at={(ticklabel cs:0.5)},anchor=near ticklabel,sloped}
]
\addplot table [x=R, y=U12V] {Daten_Ohmsches_Gesetz_Versuch_2.csv}
node[above,pos=0] {\SI{12}{\volt}};
\addplot table [x=R, y=U8V] {Daten_Ohmsches_Gesetz_Versuch_2.csv}
node[above,pos=0] {\SI{8}{\volt}};
\addplot table [x=R, y=U4V] {Daten_Ohmsches_Gesetz_Versuch_2.csv}
node[above,pos=0] {\SI{4}{\volt}};
\end{axis}
\end{tikzpicture}
\subcaption{des Widerstandes}
\label{diag:Stromkennlinie in Abhängigkeit des Widerstandes}
\end{minipage}
\caption{Stromkennlinie in Abhängigkeit}
\label{diag:Stromkennlinie in Abhängigkeit}
\end{figure}
\end{document}