original_docstring: Creates a ratio histogram by dividing a numerator histogram by a
      denominator histogram.  Errors are calculated under the assumption of error
      on the numerator histogram only. This method also provides some basic 
      styling of the ratio histogram, disabling statistics and title, and 
      setting markers appropriately.
  
      Args:
          numerator: A single histogram, an iterable of histograms, or a THStack
              object which represents the data to use in the numerator of the
              ratio division
          denominator: A single histogram, an iterable of histograms, or a
              THStack object which represents the data to use in the numerator of
              the ratio division.  This must have the same binning as numerator.
          y_title: The title for the y-axis
  
      Returns:
          A ROOT histogram representing the ratio of numerator/denominator.
      
docstring: Creates a ratio histogram by dividing a numerator histogram by a
  denominator histogram.  Errors are calculated under the assumption of error
  on the numerator histogram only. This method also provides some basic
  styling of the ratio histogram, disabling statistics and title, and
  setting markers appropriately.
docstring_tokens: Creates a ratio histogram by dividing a numerator histogram by a denominator histogram . Errors are calculated under the assumption of error on the numerator histogram only . This method also provides some basic styling of the ratio histogram disabling statistics and title and setting markers appropriately .
code: def ratio_histogram(numerator, denominator, y_title = 'Data / Background'):
      """Creates a ratio histogram by dividing a numerator histogram by a
      denominator histogram.  Errors are calculated under the assumption of error
      on the numerator histogram only. This method also provides some basic 
      styling of the ratio histogram, disabling statistics and title, and 
      setting markers appropriately.
  
      Args:
          numerator: A single histogram, an iterable of histograms, or a THStack
              object which represents the data to use in the numerator of the
              ratio division
          denominator: A single histogram, an iterable of histograms, or a
              THStack object which represents the data to use in the numerator of
              the ratio division.  This must have the same binning as numerator.
          y_title: The title for the y-axis
  
      Returns:
          A ROOT histogram representing the ratio of numerator/denominator.
      """
      # Create our result based off of the numerator (it will have bin errors
      # enabled)
      result = combined_histogram(numerator)
  
      # Create the denominator
      combined_denominator = combined_histogram(denominator)
  
      # Disable errors on the denominator (they should be handled in an
      # uncertainty band around unity)
      for bin in xrange(0, combined_denominator.GetNbinsX() + 2):
          combined_denominator.SetBinError(bin, 0.0)
  
      # Divide by the denominator
      result.Divide(combined_denominator)
  
      # Do some styling on the result
      result.SetTitle('')
      result.SetStats(0)
      result.SetMarkerStyle(20)
      #result.SetMarkerSize(1.5)
  
      # Set title
      result.GetYaxis().SetTitle(y_title)
  
      return result
code_tokens: def ratio_histogram ( numerator , denominator , y_title = 'Data / Background' ) : result = combined_histogram ( numerator ) combined_denominator = combined_histogram ( denominator ) for bin in xrange ( 0 , combined_denominator . GetNbinsX ( ) + 2 ) : combined_denominator . SetBinError ( bin , 0.0 ) result . Divide ( combined_denominator ) result . SetTitle ( '' ) result . SetStats ( 0 ) result . SetMarkerStyle ( 20 ) result . GetYaxis ( ) . SetTitle ( y_title ) return result
short_docstring: Creates a ratio histogram by dividing a numerator histogram by a
  denominator histogram.
short_docstring_tokens: Creates a ratio histogram by dividing a numerator histogram by a denominator histogram .
comment: """Creates a ratio histogram by dividing a numerator histogram by a
      denominator histogram.  Errors are calculated under the assumption of error
      on the numerator histogram only. This method also provides some basic 
      styling of the ratio histogram, disabling statistics and title, and 
      setting markers appropriately.
  
      Args:
          numerator: A single histogram, an iterable of histograms, or a THStack
              object which represents the data to use in the numerator of the
              ratio division
          denominator: A single histogram, an iterable of histograms, or a
              THStack object which represents the data to use in the numerator of
              the ratio division.  This must have the same binning as numerator.
          y_title: The title for the y-axis
  
      Returns:
          A ROOT histogram representing the ratio of numerator/denominator.
      """$SEP$# Create our result based off of the numerator (it will have bin errors$SEP$# enabled)$SEP$# Create the denominator$SEP$# Disable errors on the denominator (they should be handled in an$SEP$# uncertainty band around unity)$SEP$# Divide by the denominator$SEP$# Do some styling on the result$SEP$#result.SetMarkerSize(1.5)$SEP$# Set title