added xMin, xMax and setXRange
added xMin, xMax and setXRange