Adjusted maximum values of graphs based on number of ticks.