\documentclass[a4paper]{article}

\usepackage{pgfplots}

\pgfplotsset{
	compat=1.5,
	compat/labels/newest,
}

\begin{document}

\def\fraction{1}

\long\def\TEST[#1]#2#3{%
\begin{tikzpicture}
	\begin{axis}[clip=false,axis lines=center,min=#2,max=#3,#1,
		x dir=reverse,
		xlabel=xlabel,
		ylabel=ylabel,
		zlabel=zlabel,
		title={
			x=\pgfmathprintnumber{\pgfkeysvalueof{/pgfplots/xmin}}:\pgfmathprintnumber{\pgfkeysvalueof{/pgfplots/xmax}};
			y=\pgfmathprintnumber{\pgfkeysvalueof{/pgfplots/ymin}}:\pgfmathprintnumber{\pgfkeysvalueof{/pgfplots/ymax}};
			z=\pgfmathprintnumber{\pgfkeysvalueof{/pgfplots/zmin}}:\pgfmathprintnumber{\pgfkeysvalueof{/pgfplots/zmax}};
		}]
	%--------------------------------------------------
	% \node[anchor=near xticklabel] at (rel axis cs:%
	% 	{\if\pgfkeysvalueof{/pgfplots/x dir/value}r 1-\fi\pgfkeysvalueof{/pgfplots/xmax} < 0 ? 1-\fraction : \fraction},%
	% 	{(min(max(0,\pgfkeysvalueof{/pgfplots/ymin}),\pgfkeysvalueof{/pgfplots/ymax})-\pgfkeysvalueof{/pgfplots/ymin})/(\pgfkeysvalueof{/pgfplots/ymax}-\pgfkeysvalueof{/pgfplots/ymin})},%
	% 	{(min(max(0,\pgfkeysvalueof{/pgfplots/zmin}),\pgfkeysvalueof{/pgfplots/zmax})-\pgfkeysvalueof{/pgfplots/zmin})/(\pgfkeysvalueof{/pgfplots/zmax}-\pgfkeysvalueof{/pgfplots/zmin})}) {X};
	% 
	% \node at (xticklabel cs:1) {T};
	%-------------------------------------------------- 
	\end{axis}
\end{tikzpicture}
}

\TEST[]{-2}{4}

\TEST[]{2}{4}

\TEST[]{-4}{-2}

\end{document}

