# PGFPlots: Missing minor ticks at the end of axes

In the following MWE the minor ticks are not drawn to the end of the axes but stop at last major tick (at x=1.5 and at y=100).

\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{
compat = 1.15,
minor tick num = 4
}

\begin{document}

\begin{tikzpicture}
\begin{axis}
table {
x   y
0.0 100
1.5 10
};
\end{axis}
\end{tikzpicture}

\end{document}


Could this be due to a bug in the pgfplots package? How could I force the minor ticks to be drawn to the end of the axes?

EDIT: The minor ticks are drawn as expected using version 1.14 of pgfplots. (I installed version 1.14, just setting compat = 1.14 did not work.)

Help pgfplots by providing the axes limits, e. g. \begin{axis}[ymax = 110]. Not in every diagram you want the ticks to be drawn to the very end of the axes.

\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{
compat = 1.15,
minor tick num = 4
}

\begin{document}

\begin{tikzpicture}
\begin{axis}
[
ymax = 110,
]
table {
x   y
0.0 100
1.5 10
};
\end{axis}
\end{tikzpicture}

\end{document}


• As you can see from the revision history, I only removed the quote formatting (> at beginning of line) for the first paragraph of text. It's not a quote, so I don't understand why you used it. – Torbjørn T. Aug 13 '17 at 17:17
• Thanks a lot for the hint! It works. Since I have quite a large number of pgfplots in my document, setting all axis limits manually is a bit cumbersome. Do you have an idea how I could help pgfplots to set the limits more generally? At the moment I do this with the enlargelimits key and its variants. – luki Aug 13 '17 at 20:56