     # draw marks
     if @marks
       for mark in @marks.all
-        # scaledMin = ((mark.dataXMinRel - xMin) / (xMax - xMin)) * @canvas.width
-        # scaledMax = ((mark.dataXMaxRel - xMin) / (xMax - xMin)) * @canvas.width
         scaledMin = ((parseFloat(mark.dataXMinRel) + parseFloat(@toDays(@leftPadding)) - parseFloat(xMin) - parseFloat(val) ) / (parseFloat(xMax) - parseFloat(xMin)) ) * parseFloat(@canvas.width-@leftPadding)
         scaledMax = ((parseFloat(mark.dataXMaxRel) + parseFloat(@toDays(@leftPadding)) - parseFloat(xMin) - parseFloat(val) ) / (parseFloat(xMax) - parseFloat(xMin)) ) * parseFloat(@canvas.width-@leftPadding)
         #                                ^ prevents from moving towards left                          ^ prevents marks from moving towards right

    classifier.el.find('#graph').addClass('is-zooming')
    [cMin, cMax] = [@xMin, @xMax]

    # # DEBUG CODE
    # @plotPoints(wMin,wMax)
    # @rescaleMarks(wMin,wMax)

    zoom = setInterval (=>
      @plotPoints(cMin,cMax)
      @rescaleMarks(cMin,cMax)

    for entry in [@prevMarks...]
      # console.log '[',entry.xL,',',entry.xR,']' # DEBUG
      @highlightCurve(entry.xL,entry.xR)

  generateFakePrevMarks: (n) ->
    minWid = 0.5 # [days]
