Hi! I'm using pgfplots 1.10 and observe the following problem. The x label shifts down a bit if I introduce extra x ticks, even if their labels are empty. The following example produces the observed behavior:
\documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} \begin{document} \begin{tikzpicture} \begin{axis}[ width=4cm, xlabel=Test, axis x line=bottom, axis y line=left, ] \addplot [black] {x^2}; \end{axis} \end{tikzpicture} \begin{tikzpicture} \begin{axis}[ width=4cm, xlabel=Test, axis x line=bottom, axis y line=left, extra x ticks={0}, extra x tick labels={}, ] \addplot [black] {x^2}; \end{axis} \end{tikzpicture} \end{document} It does not happen with the old, static, label placement (e. g. if I remove the compat setting). I was not able to test with 1.11, but there's nothing related mentioned in the release notes, if I did not overlook it. Any ideas what I'm missing or if it is a bug and how to work around it? I need two adjacent graphs in subfloats but only one of them has extra ticks, so the spacing should be equal to look reasonable. Adding an extra tick on the other plot helps, but the spacing looks better without, so that's not an option. And switching back to the old behavior means manually tweaking the distance, what makes no sense to me either. Thanks & best regards Chris ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ Pgfplots-features mailing list Pgfplots-features@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pgfplots-features