Adding logarithmic function to shorten range.

For instance, if we have one value of 1400 and one value of 3, taking
the (adjustable) root of those values will shorten the range while also
keeping them the relatively correct size for the diagram.

Working copy. Still has some bugs to work out.