I want to make a chart with nine bars. As you can see they are in the code (0-8). Unfortunately it's making only eight bars.
\documentclass[12pt]{report}
\usepackage{polski}
\usepackage{pgfplots,tikz}
\pagestyle{empty}
\pgfplotsset{width=14cm,compat=1.3}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
x tick label style={
/pgf/number format/1000 sep=},
ylabel=PrawdopodobieĊstwo,
enlargelimits=0.02,
legend style={at={(0.5,-0.15)},
anchor=north,legend=-1},
ybar interval=0.8,
]
\addplot
coordinates{
(0,0.00390625)
(1,0.03125)
(2,0.109375)
(3,0.21875)
(4,0.273438)
(5,0.21875)
(6,0.109375)
(7,0.03125)
(8,0.00390625)
};
\addplot
coordinates{
(0,0.00405)
(1,0.03143)
(2,0.10847)
(3,0.21984)
(4,0.2723)
(5,0.2166)
(6,0.11272)
(7,0.03062)
(8,0.00397)
};
\addplot
coordinates{
(0,0.00261035)
(1,0.0237304)
(2,0.107973)
(3,0.221879)
(4,0.270052)
(5,0.22449)
(6,0.108685)
(7,0.0363075)
(8,0.00427148)
};
\legend{Rozklad teoretyczny,Rozklad dla n=100000,Rozklad dla n=4214}
\end{axis}
\end{tikzpicture}
\end{document}

