adapt graph y-axis