       #add legend spacing
       @legend_height = @legend_names.length * @legend_height + (1 + @legend_names.length) * legend_spacing
       ctx = @plot_view.canvas_view.ctx
-
       ctx.save()
       @label_props.set(ctx, @)
       text_widths = _.map(@legend_names, (txt) -> ctx.measureText(txt).width)

      @box_coords = [x,y]

    render: () ->
      ctx = @plot_view.canvas_view.ctx
      ctx.save()


      else
        @legends = @mget('legends')
        @legend_names =_.keys(@mget('legends'))
      @need_calc_dims = true
      @listenTo(@plot_model.solver, 'layout_update', () -> @need_calc_dims = true)

    calc_dims: (options) ->
      label_height = @mget('label_height')
