Simplify axis major tick position calculation and fix x^2

Authored by sgerlach on May 9 2020, 8:27 AM.