       last_color_field = fcolor
       @plot_view.ctx.strokeStyle = fcolor
       @plot_view.ctx.fillStyle = fcolor
-      
+
       last_color_field = false
       ctx = @plotview.ctx
       for idx in [0..data.length]
-        
+
         if idx in sel_idxs
           if color_field
             comp_color = color_mapper.map_screen(idx)

    yfield = @model.get('yfield')
    @dataX = (x[xfield] for x in data)
    @dataY = (y[yfield] for y in data)
    
    #@screeny = new Float32Array(screeny)
    #@screenx = new Float32Array(screenx)
    #@screenx = screenx

      sel_idxs = renderer.get_ref('data_source').get('selected')
      ds = renderer.get_ref('data_source')
      data = ds.get('data')
      #hugo - there must be a better way
      if (not rendererview.screenx) or (not rendererview.screeny)
        rendererview.calc_buffer(data)
      fcolor = @mget('foreground_color')
      rvm = rendererview.model

      fcolor = rvm.get('foreground_color')
      unselected_color = @mget('unselected_color')
      color_field = rvm.get('color_field')
