 
     coords = [[], []]
     for ii in [0...ticks.length]
-      if ticks[ii] == min or ticks[ii] == max
+      if (ticks[ii] == min or ticks[ii] == max) and exclude_ends
         continue
       dim_i = []
       dim_j = []

  _draw_grids: (ctx) ->
    if not @visuals.grid_line.doit
      return
    [xs, ys] = @mget('grid_coords')
    @_draw_grid_helper(ctx, @visuals.grid_line, xs, ys)

  _draw_minor_grids: (ctx) ->
    if not @visuals.minor_grid_line.doit
      return
    [xs, ys] = @mget('minor_grid_coords')
    @_draw_grid_helper(ctx, @visuals.minor_grid_line, xs, ys)

  _draw_grid_helper: (ctx, props, xs, ys) ->


    return [start, end]

  grid_coords: (location, exclude_ends=true) ->
    i = @get('dimension')
    j = (i + 1) % 2
    [range, cross_range] = @ranges()

    [start, end] = @computed_bounds()

    tmp = Math.min(start, end)
    end = Math.max(start, end)
