Problems:
- The bar value "90" is written over a black line, almost impossible to read
- The value "58" is written over an x tick, hard to ready
- Bar spacing is bad. There is too much space between the bars, and there is no space above/below the top and the bottom bar.
Some of this might be my fault, but I would expect that this kind of mess should be automatically avoided by pgfplots. What am I doing wrong?
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{pgfplots}
\pgfplotsset{compat=1.7}
\begin{document}
\begin{figure}
\resizebox{\linewidth}{!}{
\begin{tikzpicture}
\begin{axis}[
xbar,
xmin=0.0,
xmax=91.6666666667,
width=12cm,
height={ 1cm + ( 3.0 * 1cm ) },
symbolic y coords={{Térritmus},{Mozgásritmus},{Formaritmus}},
xlabel={Pontérték \%},
ytick=data,
nodes near coords,
nodes near coords align = {horizontal}
]
\addplot [draw=black, fill=cyan!40!black] coordinates {
(58.3333333333,{Térritmus})
(91.6666666667,{Mozgásritmus})
(90.0,{Formaritmus})
};
\end{axis}
\end{tikzpicture}
}
\caption{Ritmus}
\end{figure}
\end{document}