original_docstring: If there is no object currently registered as the owner of the axes
          drawn on the main plot, then this will set it.
  
          Args:
              drawable: The graph, histogram or stack whose axes were ALREADY
                  drawn
              option: The option with which to draw the axes
          
docstring: If there is no object currently registered as the owner of the axes
  drawn on the main plot, then this will set it.
docstring_tokens: If there is no object currently registered as the owner of the axes drawn on the main plot then this will set it .
code: def _handle_axes(self, drawable, option):
          """If there is no object currently registered as the owner of the axes
          drawn on the main plot, then this will set it.
  
          Args:
              drawable: The graph, histogram or stack whose axes were ALREADY
                  drawn
              option: The option with which to draw the axes
          """
          # If we already have an axes object, ignore this one
          if self._axes_object is not None:
              return
  
          # Grab the histogram used for axes style/range manipulation
          if is_stack(drawable) or is_graph(drawable):
              axes_histogram = drawable.GetHistogram()
          else:
              axes_histogram = drawable
  
          # Grab the histogram used for title manipulation
          if is_stack(drawable):
              title_histogram = drawable.GetHists()[0]
          else:
              title_histogram = drawable
  
          # Set the plot title
          title_histogram.SetTitle(self._title)
  
          # Grab axes
          x_axis, y_axis = axes_histogram.GetXaxis(), axes_histogram.GetYaxis()
  
          # Grab titles from first histogram if not set explicitly
          if self._x_title is None:
              self._x_title = title_histogram.GetXaxis().GetTitle()
          if self._y_title is None:
              self._y_title = title_histogram.GetYaxis().GetTitle()
  
          # Style x-axis, or hide it if this plot has a ratio plot
          if self._x_range is not None:
              x_axis.SetRangeUser(*self._x_range)
          if self._ratio_plot:
              x_axis.SetLabelOffset(999)
              x_axis.SetTitleOffset(999)
          else:
              x_axis.SetTitle(self._x_title)
              x_axis.SetTitleSize(self.PLOT_X_AXIS_TITLE_SIZE)
              x_axis.SetTitleOffset(self.PLOT_X_AXIS_TITLE_OFFSET)
              x_axis.SetLabelSize(self.PLOT_X_AXIS_LABEL_SIZE)
          if self._x_integer_ticks:
              x_axis.SetNdivisions(11) # hack for integer ticks 
  
          # Style y-axis
          y_axis.SetTitle(self._y_title)
          y_axis.SetLabelFont(self.PLOT_ATLAS_STAMP_TEXT_FONT)
          y_axis.SetTitleSize(
              (self.PLOT_Y_AXIS_TITLE_SIZE_WITH_RATIO
               if self._ratio_plot
               else self.PLOT_Y_AXIS_TITLE_SIZE)
          )
          y_axis.SetTitleOffset(
              (self.PLOT_Y_AXIS_TITLE_OFSET_WITH_RATIO
               if self._ratio_plot
               else self.PLOT_Y_AXIS_TITLE_OFFSET)
          )
          y_axis.SetNdivisions(5,5,0)
          
          # set axis text sizes 
          if self._ratio_plot:
              y_axis.SetLabelSize(self.PLOT_Y_AXIS_LABEL_SIZE_WITH_RATIO)
          else:
              y_axis.SetLabelSize(self.PLOT_Y_AXIS_LABEL_SIZE) 
              y_axis.SetTitleSize(self.PLOT_Y_AXIS_TITLE_SIZE)
              y_axis.SetTitleOffset(self.PLOT_RATIO_Y_AXIS_TITLE_OFFSET)
  
          # Redraw the drawable with the new style
          drawable.Draw(option)
code_tokens: def _handle_axes ( self , drawable , option ) : if self . _axes_object is not None : return if is_stack ( drawable ) or is_graph ( drawable ) : axes_histogram = drawable . GetHistogram ( ) else : axes_histogram = drawable if is_stack ( drawable ) : title_histogram = drawable . GetHists ( ) [ 0 ] else : title_histogram = drawable title_histogram . SetTitle ( self . _title ) x_axis , y_axis = axes_histogram . GetXaxis ( ) , axes_histogram . GetYaxis ( ) if self . _x_title is None : self . _x_title = title_histogram . GetXaxis ( ) . GetTitle ( ) if self . _y_title is None : self . _y_title = title_histogram . GetYaxis ( ) . GetTitle ( ) if self . _x_range is not None : x_axis . SetRangeUser ( * self . _x_range ) if self . _ratio_plot : x_axis . SetLabelOffset ( 999 ) x_axis . SetTitleOffset ( 999 ) else : x_axis . SetTitle ( self . _x_title ) x_axis . SetTitleSize ( self . PLOT_X_AXIS_TITLE_SIZE ) x_axis . SetTitleOffset ( self . PLOT_X_AXIS_TITLE_OFFSET ) x_axis . SetLabelSize ( self . PLOT_X_AXIS_LABEL_SIZE ) if self . _x_integer_ticks : x_axis . SetNdivisions ( 11 ) y_axis . SetTitle ( self . _y_title ) y_axis . SetLabelFont ( self . PLOT_ATLAS_STAMP_TEXT_FONT ) y_axis . SetTitleSize ( ( self . PLOT_Y_AXIS_TITLE_SIZE_WITH_RATIO if self . _ratio_plot else self . PLOT_Y_AXIS_TITLE_SIZE ) ) y_axis . SetTitleOffset ( ( self . PLOT_Y_AXIS_TITLE_OFSET_WITH_RATIO if self . _ratio_plot else self . PLOT_Y_AXIS_TITLE_OFFSET ) ) y_axis . SetNdivisions ( 5 , 5 , 0 ) if self . _ratio_plot : y_axis . SetLabelSize ( self . PLOT_Y_AXIS_LABEL_SIZE_WITH_RATIO ) else : y_axis . SetLabelSize ( self . PLOT_Y_AXIS_LABEL_SIZE ) y_axis . SetTitleSize ( self . PLOT_Y_AXIS_TITLE_SIZE ) y_axis . SetTitleOffset ( self . PLOT_RATIO_Y_AXIS_TITLE_OFFSET ) drawable . Draw ( option )
short_docstring: If there is no object currently registered as the owner of the axes
  drawn on the main plot, then this will set it.
short_docstring_tokens: If there is no object currently registered as the owner of the axes drawn on the main plot then this will set it .
comment: """If there is no object currently registered as the owner of the axes
          drawn on the main plot, then this will set it.
  
          Args:
              drawable: The graph, histogram or stack whose axes were ALREADY
                  drawn
              option: The option with which to draw the axes
          """$SEP$# If we already have an axes object, ignore this one$SEP$# Grab the histogram used for axes style/range manipulation$SEP$# Grab the histogram used for title manipulation$SEP$# Set the plot title$SEP$# Grab axes$SEP$# Grab titles from first histogram if not set explicitly$SEP$# Style x-axis, or hide it if this plot has a ratio plot$SEP$# hack for integer ticks $SEP$# Style y-axis$SEP$# set axis text sizes $SEP$# Redraw the drawable with the new style