fix bug with linear scale

previously it was assumed the domain started at 0, but the domain should actually start at min.