setScale function

Set the scale range of a grid.