call autodomain when changing scale type.