def auto_morelog(axis):
    """
  Wrapper around TAxis.SetMoreLogLabels 
  Configure automatically whether this axis should have detail label or not.
  Perferable do so in small scale.

  >>> axis = ROOT.TAxis(20, 1, 1000)
  >>> axis.moreLogLabels
  False
  >>> auto_morelog(axis)
  >>> axis.moreLogLabels
  True

  """
    valmin = axis.xmin
    valmax = axis.xmax
    if valmin and valmax / valmin < 10000.0:
        axis.moreLogLabels = True
