pgf-tikz / pgfplots

pgfplots - A TeX package to draw normal and/or logarithmic plots directly in TeX in two and three dimensions with a user-friendly interface and pgfplotstable - a TeX package to round and format numerical tables. Examples in manuals and/or on web site.
http://pgfplots.sourceforge.net/
187 stars 33 forks source link

`tick align=outside` set for `xbar/`ybar` but not `xbar stacked`/`ybar stacked` #475

Open nrother opened 1 month ago

nrother commented 1 month ago

The code for xbar sets ytick align=outside, but the code for xbar stacked does not. The same applies for ybar and ybar stacked.

This seem to be an error to me.

I also noted that the manual (link to online version) states that xbar is defined as

/pgfplots/xbar/.style={
        /tikz/xbar,
        bar cycle list,
        tick align=outside,
        xbar legend,
        /pgfplots/bar shift auto={#1},
    }, 

Which is not really accurate. Specifically, it mentions tick align=outside, but in fact, only ytick align=outside is set. I think the code is correct, just the documentation is misleading.