     # draw axes
     @drawXTickMarks(xMin, xMax)
     @drawYTickMarks(yMin, yMax)
-
     @scale = (parseFloat(@largestX) - parseFloat(@smallestX)) / (parseFloat(@xMax) - parseFloat(@xMin))
-    # console.log '----------- SCALE -------- ', @scale
-
     @rescaleMarks(xMin, xMax)
 
     return

    @element.addEventListener 'mouseout', @onMouseOut

  toPixels: (dataPoint) -> ((parseFloat(dataPoint) - parseFloat(@xMin)) / (parseFloat(@xMax) - parseFloat(@xMin))) * (parseFloat(@canvas.width)-parseFloat(@leftPadding))

  minWidth: -> 0.5*(@canvas.width-@canvasGraph.leftPadding)/(@canvasGraph.xMax-@canvasGraph.xMin)
    # DEBUG CODE
    # minWidth =  0.5*(@canvas.width-@canvasGraph.leftPadding)/(@canvasGraph.xMax-@canvasGraph.xMin)
    # console.log 'canvasGraph.xMax = ', @canvasGraph.xMax
    # console.log 'minWidth() = ', minWidth
    # return minWidth

  maxWidth: -> 2.0*(@canvas.width-@canvasGraph.leftPadding)/(@canvasGraph.xMax-@canvasGraph.xMin)
    # DEBUG CODE
    # maxWidth =  2.0*(@canvas.width-@canvasGraph.leftPadding)/(@canvasGraph.xMax-@canvasGraph.xMin)
    # console.log 'maxWidth() = ', maxWidth
    # return maxWidth

  handleWidth: -> 16 * (@canvasGraph.scale || 1)

  draw: (e) ->

        @ctx.fillText( (tick + @originalMin).toFixed(2), @toPixels(tick)+@leftPadding, 0 + textSpacing+10 )
      
  drawYTickMarks: (yMin, yMax) ->
    
    # generate intervals
    yTicks = []
