       best_scale_ix = scale_ixs[argmin(errors)]
       best_scale = @scales[best_scale_ix]
 
-      console.log("Selected #{best_scale.constructor.name}")
+      console.log("Selected #{best_scale}")
 
       return best_scale
 

    get_best_scale: (data_low, data_high) ->
      data_range = float(data_high) - float(data_low)
      ideal_interval = @get_ideal_interval(data_low, data_high)
      scale_ixs = [
        bisect_right(@min_intervals, ideal_interval) - 1,
        bisect_right(@max_intervals, ideal_interval)


  # FIXME It's not clear this should be a class.
  class AbstractScale
    constructor: (@toString_properties=[]) ->

    get_ideal_interval: (data_low, data_high) ->
      data_range = float(data_high) - float(data_low)
      return data_range / DESIRED_N_TICKS
