Adjust position of tick labels

With logarithmic axes, MPL seems to put the label too close to the axis. To move it down (left) a bit, try

ax.tick_params(axis='x', which='both', pad=8);