MNT : slight refactor of Axis.set_ticklabels

update both labels (top/bottom or left/right), even if
they are not both visible.
Merge pull request #3942 from tacaswell/axis_refactor

MNT : slight refactor of Axis.set_ticklabels