   enableMarking: ->
     # console.log 'CANVAS GRAPH: enableMarking()'
     @markingDisabled = false
-    
+
     # TODO: should this be in the constructor?
     @marks = new Marks
     window.marks = @marks

    for y, i in [ data... ]
      y_new[i] = (y-1)/(std)
      y_new[i] = y/(mean)
     
    return y_new

  processOutliers: (data, nsigma) -> 
    data_new = {}
    data_new.x = []
    data_new.y = []
    mean = @mean(data.y)
    std = @std(data.y)
    
    for y, i in [data.y...]
      continue if (y - mean) > (nsigma * std) # skip outlier
      data_new.x.push data.x[i]

      continue if i is 0 # skip first value

      # draw ticks (bottom)
      @ctx.beginPath()
      @ctx.moveTo( @toPixels(tick)+@leftPadding, @canvas.height )
      if i % majorTickInterval is 0
        @ctx.lineTo( @toPixels(tick)+@leftPadding, @canvas.height - tickMajorLength ) # major tick
