The logic for moving the axis lines around is atrocious. Really need to go through and clean up the logic and make it more readible.