Manual for Package pgfplots
2D/3D Plots in LATeX, Version 1.18.1
http://sourceforge.net/projects/pgfplots
Utilities and Basic Level Commands
9.5Accessing Axis Limits
It is also possible to access axis limits during the visualization phase, i.e. during \end{axis}. Please refer to the reference documentation for xmin on page (??).