y axis auto tick amount calculation