Updated auto-adjusting Y axis.

## This pull request
This pull request contains an improvement to the Y-axis automatic setup.
* While making steps more granular, multipication by 5 is also allowed. This allows for example 2 unit steps for data between 0 and 20.
* After the granulation is completed, the unneeded steps (those below or above actual data) are removed.