New setAxes function