[Tex/LaTex] Default distance between axis numbers and axis labels pgfplots

pgfplots

What is the default distance between the axis numbers and axis labels in the plots made with pgfplots?enter image description here

Best Answer

The default distance between the tick labels and the axis labels when using compat=1.3 or later (and thus xlabel near ticks) is 2*inner sep + 2*outer sep = 2*0.3333em + 2*0.5\pgflinewidth.

If you're not using compat=1.3 (or explicitly supply xlabel absolute), the distance between the top of the x label and the x axis is 15pt, and the distance between the horizontal centre of the y label and the y axis is 35pt.