Set grid line by weight.