Improved getMinAxis() and getMaxAxis()