     n = palette.length
     low = @low ? _.min(data)
     high = @high ? _.max(data)
-    scale = n / (Math.log1p(high) - Math.log1p(low))  # subtract the low offset
+    scale = n / (log1p(high) - log1p(low))  # subtract the low offset
     max_key = palette.length - 1
     values = []
 


ColorMapper = require "./color_mapper"


class LogColorMapper extends ColorMapper.Model
  type: "LogColorMapper"

        continue

      # Get the key
      log = log1p(d) - log1p(low)  # subtract the low offset
      key = Math.floor(log * scale)

      # Deal with upper bound
