set max/min for x/y axis