Code:
\documentclass[a4paper,ngerman]{report}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{babel}
\usepackage{pgfplots}
\begin{document}
\pgfplotsset{width=18cm,compat=1.3}
\begin{tikzpicture}[scale=0.82]
\begin{axis}[
%symbolic x coords={T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19},
xticklabel style={rotate=45,anchor=near xticklabel},
xtick={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19},
xticklabels={T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19},
ylabel=ylabel,
xlabel=xlabel,
%enlargelimits=0.07,
legend style={at={(0.16,0.98)}, %0.6,-0.15
anchor=north west,legend columns=3},
ybar=2pt,
bar width=12pt,
%nodes near coords,
%axis y line*=left,
ymin=0,
ymax=16.5,
point meta=explicit,]
\addplot[draw=green!60!black,fill=green!30!white,semithick]
coordinates {
(1,16)
(2,16)
(3,14)
(4,8)
(5,8)
(6,8)
(7,7)
(8,5)
(9,5)
(10,4)
(11,3)
(12,3)
(13,3)
(14,3)
(15,3)};
\addplot[draw=red,fill=red!30!white,semithick]
coordinates {
(16,2)
(17,1)
(18,1)
(19,1)};
\draw [blue!70!white,very thick] (axis cs:0,3) -- (axis cs:20, 3);
\node
[pin=90:({min}),fill=green,circle,scale=0.4]
(aninnernode1) at (axis cs:18,3) {};
\legend{Gruppe A,Gruppe B}
\end{axis}
\end{tikzpicture}
\end{document}
Kann mir jemand helfen?
Lesezeichen