Enable to calculate x and y range automatically