 
     angle = _angle_lookup[side][orient]
     standoff = @_tick_extent() + @_tick_label_extent() + @mget('axis_label_standoff')
+
     sx = (sx[0] + sx[sx.length-1])/2
     sy = (sy[0] + sy[sy.length-1])/2
 

      for i in [0..labels.length-1]
        if not labels[i]?
          continue
        w = @plot_view.ctx.measureText(labels[i]).width * 1.3 # height overestimates, compensate
        h = @plot_view.ctx.measureText(labels[i]).ascent
        val = w*c + (h/factor)*s
        if val > extent
          extent = val

      for i in [0..labels.length-1]
        if not labels[i]?
          continue
        w = @plot_view.ctx.measureText(labels[i]).width * 1.1
        h = @plot_view.ctx.measureText(labels[i]).ascent * 0.9
        val = w*s + (h/factor)*c
        if val > extent
          extent = val
