MNT : slight refactor of Axis.set_ticklabels

update both labels (top/bottom or left/right), even if they are not both visible.

Did this while looking into #3921