       @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
+        scaledMin = ((mark.dataXMinRel - xMin) / (xMax - xMin)) * (@canvas.width-@leftPadding)
+        scaledMax = ((mark.dataXMaxRel - xMin) / (xMax - xMin)) * (@canvas.width-@leftPadding)
         mark.element.style.width = (scaledMax-scaledMin) + "px"
         mark.element.style.left = (scaledMin) + "px"
         mark.save(scaledMin, scaledMax)
     # @highlightCurve(10,14) # test
+
+    gradient = @ctx.createLinearGradient(0,0,60,0);
+    gradient.addColorStop(0,'rgba(0,0,0,1.0)');
+    gradient.addColorStop(1,'rgba(0,0,0,0.0');
+    @ctx.fillStyle = gradient
+    @ctx.fillRect(0,0,60,@canvas.height)
+
+    # draw axes
+    @drawXTickMarks(xMin, xMax)
+    @drawYTickMarks(yMin, yMax)
+
     @scale = (@largestX - @smallestX) / (@xMax - @xMin)
     return
 

    val = classifier.el.find('#ui-slider').val()
    zoomRanges = classifier.zoomRanges
    zoomLevel  = classifier.zoomLevel

    # draw axes
    @drawXTickMarks(xMin, xMax)
    @drawYTickMarks(yMin, yMax)
    
    # plot points
    for i in [0...@dataLength]

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

    # determine intervals
