I have a problem with pgfplots and it took me a while to strip down my problem to the minimum. I try to add two lines and fill the area between them. The curves have points outside of the axis area. With 'compat=newest' this results in a figure too big. With 'compat=default' the figure is clipped right at the axes.
The followig MWE shows the problem:
\documentclass{standalone}
\usepackage{pgfplots}
\usepgfplotslibrary{fillbetween}
\pgfplotsset{compat=newest}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
xmin=-90,
xmax=90,
ymin=-90,
ymax=90,
]
\addplot[name path=A] table{
-90 -80
90 100
};
\addplot[name path=B] table{
-90 -100
90 80
};
\addplot fill between[of=A and B];
\end{axis}
\end{tikzpicture}
\end{document}
I tried to add some sample images, but with the white background you cannot tell the difference here. I keep trying to get feasible samples.
In this example the figure gets just slightly bigger, than expected. But in my actual file it gains about 50% in height resulting in very akward spacing.
For now I solve the problem with compat=default. Is there any other solution?
Thank you very much in advance.

compat=newestandcompat=default. am i missing something? – aeroNotAuto Mar 12 '15 at 12:48pgfplots, you should pick an explicit version, instead of using thedefaultandnewestoptions. In fact, if you look at the log file for thedefault, you'll find that it recommends you to add an explicit version. I can reproduce this behavior you see, but I think it is "expected" :-) There is probably some way to fix it, let's see – darthbith Mar 12 '15 at 12:56default. That's why I went usingnewesta long time ago. I never noticed a difference. But now I actually stumbled over a version issue. So I should reconsider and put a specific version there. – Gunter Mar 13 '15 at 07:29