         // Calculate the initial range depending on settings.
         let initialActivePointsInterval = calculateActivePointsInterval()
         
-        //let detectedRange = calculateRange(forEntireDataset: self.data) // CHANGED
-        /*
-        if(shouldAutomaticallyDetectRange) {
-            self.range = detectedRange
-        }
-        else {
-            
-        }
-        */
-        
-        // CHANGED: Need to calculate the range across all plots to get the min and max for all plots.
+        // Need to calculate the range across all plots to get the min and max for all plots.
         if (shouldAdaptRange) { // This overwrites anything specified by rangeMin and rangeMax
             let range = calculateRange(forActivePointsInterval: initialActivePointsInterval)
             self.range = range

            self.range = (min: 0, max: rangeMax)
        }
        
        // DRAWING
        
        let viewport = CGRect(x: 0, y: 0, width: viewportWidth, height: viewportHeight)
        

        }
        */
        
        // Initialise all plots during setup.
        // This means all plots have to be added before the view appears on screen.
        for plot in plots {
            
            #if !TARGET_INTERFACE_BUILDER
                plot.setup() // Only init the animations for plots if we are not in IB
            #endif
            
            plot.createPlotPoints(numberOfPoints: numberOfDataPoints, range: range)
            
