I try to specify the x axis label position below the x axis arrow at the same baseline like the xticklabels. It works fine for most plots. However, when modifying the range of the y axis with ymin=..., the coordinate of current axis.south east changes (which I don't like), but in addition, the position of the coordinate changes towards an unexpected direction.
What is the reason that truncated plots result in a strangely modified current axis environment?
In the following, pictures with ymin=1.0 (ok), ymin=0.8 (ok), ymin=1.2 (undesirable result), and ymin not defined (strange result) are provided, together with an MWE.
MWE:
\documentclass{standalone}
\usepackage{tikz,pgfplots}
\usetikzlibrary{calc}
\pgfplotsset{compat=1.13}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
axis x line=bottom,
every axis x label/.style={at={($ (current axis.south east) + (0,-2.135pt)$)},red,anchor=base,yshift=-0.75em},
xticklabel style={anchor=base,yshift=-0.75em},
xlabel={$t$},
ymin=1.0, % <-- min of addplot
%ymin=1.2, % <-- random truncation
]
\addplot[black] coordinates {(0,2) (1,1) (2.2,2)};
\end{axis}
\end{tikzpicture}
\end{document}






current axis.south east... Is this a bug inpgfplotsor have I understood the meaning ofcurrent axisin a wrong way? – kromuchi Apr 09 '16 at 16:17