Fix shifted ylabels (Issue #1571)

Account for rotation mode when setting axis label position. This is used, for instance, when setting labels on colorbars.