\documentclass[a4paper]{article}

\usepackage{pgfplots}

\pgfplotsset{compat=1.7}

\begin{document}

\begin{tikzpicture}
%\tracingmacros=2 \tracingcommands=2
\begin{axis}[
	title={compat=1.7},
	xbar=0pt,
	width=7cm,
	height=12cm,
	bar width=2,
	minor y tick num=4,
	ytick=data,
	enlargelimits=0.15]
\addplot
coordinates
    {(10,5) (15,10) (5,15) (24,20) (30,25)};
\addplot
coordinates
    {(3,5) (5,10) (15,15) (20,20) (35,25)};
\end{axis}
\end{tikzpicture}
\begin{tikzpicture}
\pgfplotsset{compat=default}
\begin{axis}[
	title={compat=default},
	xbar=0pt,
	width=7cm,
	height=12cm,
	bar width=2,
	minor y tick num=4,
	ytick=data,
	enlargelimits=0.15]
\addplot
coordinates
    {(10,5) (15,10) (5,15) (24,20) (30,25)};
\addplot
coordinates
    {(3,5) (5,10) (15,15) (20,20) (35,25)};
\end{axis}
\end{tikzpicture}

\end{document}

