Correctly creating ax object if it does not yet exist.