Set default alignment for Axis based on orientation.

Set default alignment for Axis based on orientation.

Close #962.