Hi Xavier,
thanks for the report! I can reproduce the issue and confirm that it
used to work up to at least 1.8 .
In fact, stack plots have received a major rework in version 1.9..
apparently, your use-case got lost. Sadly, I have had no tests for this
case (I never anticipated the possibility to disable stacking for
separate plots, to be honest).
I will take care of it with high priority.
I am sorry for the trouble.
Kind regards
Christian
Am 01.08.2014 14:48, schrieb Xavier Lacoste:
> Hello,
>
> I'm sorry I didn't find the way to post a bug on sourceforge project page.
>
> I think there was a regression in pgfplots (on Mac with the latest update of texlive (MacTex)):
>
> This minimal example will fail :
>
> \documentclass{standalone}
>
> \usepackage{tikz}
> \usepackage{pgfplots}
> \pgfplotsset{compat=1.10}
>
> \pgfplotstableread{
> 1 19.178 26.027 8.219 6.849 39.726 1
> 2 54.795 21.918 4.110 6.849 12.329 1
> 3 28.767 16.438 6.849 8.219 39.726 1
> 4 63.014 2.740 2.740 2.740 28.767 2
> 5 90.411 1.370 6.849 0.000 1.370 2
> 6 15.068 2.740 16.438 8.219 57.534 2
> 7 67.123 0.000 0.000 0.000 32.877 3
> 8 72.603 6.849 5.479 0.000 15.068 3
> 9 56.164 12.329 6.849 4.110 20.548 3
> 10 50.685 4.110 8.219 1.370 35.616 3
> }\datatable
>
> \begin{document}
> \makeatletter
> \begin{tikzpicture}
> \begin{axis}[
> ybar stacked
> ]
>
> \addplot table[x index=0,y index=1] \datatable;
> \addplot table[x index=0,y index=2] \datatable;
> \addplot table[x index=0,y index=3] \datatable;
> \addplot table[x index=0,y index=4] \datatable;
> \addplot [stack plots=false] table[x index=0,y index=5] \datatable;
> \legend{Far,Near,Here,There,NotThere}
> \end{axis}
> \end{tikzpicture}
> \end{document}
>
> If one remove the "stack plots=false", it will generate the plot.
>
> I was using this feature before and it worked. I just recently recompiled my tex file and it failed.
>
> I have a workaround for this, manually compute the difference between the plots, but I just wanted to report this.
>
> Regards,
>
> XL.
|