Fixed isse with alignTicks being applied to axes of different scale and position. Closes #546.