     @save(leftXPos, markRightX)
 
   save: (markLeftX, markRightX) ->
+
     #canvas coords
     @canvasXMin = markLeftX
     @canvasXMax = markRightX

      @ctx.fillRect(x+@leftPadding,y,2,2)
    if @marks
      for mark in @marks.all
        scaledMin = ((mark.dataXMinRel - xMin) / (xMax - xMin)) * @canvas.width
        scaledMax = ((mark.dataXMaxRel - xMin) / (xMax - xMin)) * @canvas.width
        mark.element.style.width = (scaledMax-scaledMin) + "px"
        mark.element.style.left = (scaledMin) + "px"
        mark.save(scaledMin, scaledMax)
    # @highlightCurve(10,14) # test
    @scale = (@largestX - @smallestX) / (@xMax - @xMin)
    return


    tickMinorLength = 5
    tickMajorLength = 10
    tickWidth = 1
    tickColor = '#323232'
    textColor = '#323232'
    textSpacing = 15

    # determine intervals
