Code:
\documentclass[a4paper,12pt]{scrartcl}
\usepackage{pgfplots}
\pgfplotsset{compat=1.5}
\usetikzlibrary{arrows}
\usepackage{filecontents}
\begin{filecontents}{diagramm1.dat}
Spannung Strom
1 0.1
2 0.4
3 0.6
4 0.3
5 1.1
\end{filecontents}
\begin{filecontents}{diagramm2.dat}
Spannung Strom
1 0.1
2 0.4
3 0.6
4 0.3
5 1.0
\end{filecontents}
\begin{document}
\pgfkeys{/pgf/number format/.cd ,use comma}
\pgfplotsset{every axis label/.append style={font=\scriptsize},
every tick label/.append style={font=\scriptsize}, xtick=data}
\begin{tikzpicture}
\begin{axis}[
xlabel = {[}U{]} in V, ylabel={[}I{]} in mA,
width = 0.5\textwidth,
height = 7cm,
axis x line=bottom,
x axis line style={-triangle 45},
x label style={at={(1,0)},below,yshift=-20pt,anchor=north east,inner sep=0pt},
enlarge x limits = {abs value=0.5,upper},
axis y line=left,
y axis line style={-triangle 45},
y label style={at={(0,1)},yshift=20pt,left,anchor=south east,inner sep=0pt},
ymin = 0,
enlarge y limits = {abs value=0.09,upper}
]
\addplot+[smooth] table {diagramm1.dat};
\end{axis}
\end{tikzpicture}
\hfill
\begin{tikzpicture}
\begin{axis}[
xlabel = {[}U{]} in V, ylabel={[}I{]} in mA,
width = 0.5\textwidth,
height = 7cm,
axis x line=bottom,
x axis line style={-triangle 45},
x label style={at={(1,0)},below,yshift=-20pt,anchor=north east,inner sep=0pt},
enlarge x limits = {upper},
axis y line=left,
y axis line style={-triangle 45},
y label style={at={(0,1)},yshift=20pt,left,anchor=south east,inner sep=0pt},
ymin = 0,
enlarge y limits = {value=0.09,upper}
]
\addplot+[smooth] table {diagramm1.dat};
\end{axis}
\end{tikzpicture}
\begin{tikzpicture}
\begin{axis}[
xlabel = {[}U{]} in V, ylabel={[}I{]} in mA,
width = 0.5\textwidth,
height = 7cm,
axis x line=bottom,
x axis line style={-triangle 45},
x label style={at={(1,0)},below,yshift=-20pt,anchor=north east,inner sep=0pt},
enlarge x limits = {abs value=0.5,upper},
axis y line=left,
y axis line style={-triangle 45},
y label style={at={(0,1)},yshift=20pt,left,anchor=south east,inner sep=0pt},
ymin = 0,
enlarge y limits = {abs value=0.1,upper}
]
\addplot+[smooth] table {diagramm2.dat};
\end{axis}
\end{tikzpicture}
\hfill
\begin{tikzpicture}
\begin{axis}[
xlabel = {[}U{]} in V, ylabel={[}I{]} in mA,
width = 0.5\textwidth,
height = 7cm,
axis x line=bottom,
x axis line style={-triangle 45},
x label style={at={(1,0)},below,yshift=-20pt,anchor=north east,inner sep=0pt},
enlarge x limits = {upper},
axis y line=left,
y axis line style={-triangle 45},
y label style={at={(0,1)},yshift=20pt,left,anchor=south east,inner sep=0pt},
ymin = 0,
enlarge y limits = {upper}
]
\addplot+[smooth] table {diagramm2.dat};
\end{axis}
\end{tikzpicture}
\end{document}
Gruß
Lesezeichen