       if @active
         return
       @active = true
+      #[@x,@y] = [5,5]
       @popup = $(
         '''<div class="resize_popup pull-right"
           style="border-radius: 10px; background-color: lightgrey; padding:3px 8px; font-size: 14px;

      cw = @plot_view.view_state.get('outer_width')
      @popup.text("x: 0 y:0")

      @request_render()
      @plot_view.$el.css("cursor", "crosshair")
      @plot_view.request_render()
      return null

    _deactivate: (e) ->

      SetBasepoint: "_set_base_point"
    }

    render: () ->
      if not @active
        return
    
      ctx = @plot_view.ctx

      cw = @plot_view.view_state.get('canvas_width')
      ch = @plot_view.view_state.get('canvas_height')

      line_width = 1

      ctx.save()

      ctx.strokeStyle = 'red'
      ctx.globalAlpha = 0.7
      ctx.lineWidth   = line_width
      ctx.setLineDash([])

      ctx.beginPath()
      ctx.moveTo(0,@y)
      ctx.lineTo(cw,@y)
      console.log(@x,@y)
      ctx.moveTo(@x, 0)
      ctx.lineTo(@x, ch)
      ctx.stroke()
      ctx.restore()

    mouse_coords: (e, x, y) ->
      return [x, y]
