Added autoranging to the graphing