Adjust scale generation functions. Added widening to prevent clipping of plots on the edge of the range