# File lib/bio/graphics/ruler.rb, line 46
  def scaling_factor(min_pixels_per_tick = @min_pixels_per_tick,
                          rescale_factor = @panel.rescale_factor)
    (Math.log(min_pixels_per_tick * rescale_factor) /
     Math.log(min_pixels_per_tick)).ceil 
  end