parameters: (axis, pt0, pt1, location)
return_statement: return secondary_location
docstring: Helper for setting the position of the axis along the color plane.
docstring_summary: Helper for setting the position of the axis along the color plane.
docstring_tokens: Helper for setting the position of the axis along the color plane .
function: def __setAxisPosition(axis, pt0, pt1, location):
          """
          Helper for setting the position of the axis along the color plane.
          """
  
          # The secondary location to output
          secondary_location = None
  
          # Position the axis
          axis.setOption('axis_position', location.lower())
          if location.lower() == 'left':
              axis.setOption('axis_point1', [pt1[0], pt0[1]])
              axis.setOption('axis_point2', [pt1[0], pt1[1]])
              secondary_location = 'right'
  
          elif location.lower() == 'right':
              axis.setOption('axis_point1', [pt0[0], pt0[1]])
              axis.setOption('axis_point2', [pt0[0], pt1[1]])
              secondary_location = 'left'
  
          elif location.lower() == 'top':
              axis.setOption('axis_point1', [pt1[0], pt1[1]])
              axis.setOption('axis_point2', [pt0[0], pt0[1]])
              secondary_location = 'bottom'
  
          elif location.lower() == 'bottom':
              axis.setOption('axis_point1', [pt1[0], pt0[1]])
              axis.setOption('axis_point2', [pt0[0], pt0[1]])
              secondary_location = 'top'
          return secondary_location
function_tokens: def __setAxisPosition ( axis , pt0 , pt1 , location ) : # The secondary location to output secondary_location = None # Position the axis axis . setOption ( 'axis_position' , location . lower ( ) ) if location . lower ( ) == 'left' : axis . setOption ( 'axis_point1' , [ pt1 [ 0 ] , pt0 [ 1 ] ] ) axis . setOption ( 'axis_point2' , [ pt1 [ 0 ] , pt1 [ 1 ] ] ) secondary_location = 'right' elif location . lower ( ) == 'right' : axis . setOption ( 'axis_point1' , [ pt0 [ 0 ] , pt0 [ 1 ] ] ) axis . setOption ( 'axis_point2' , [ pt0 [ 0 ] , pt1 [ 1 ] ] ) secondary_location = 'left' elif location . lower ( ) == 'top' : axis . setOption ( 'axis_point1' , [ pt1 [ 0 ] , pt1 [ 1 ] ] ) axis . setOption ( 'axis_point2' , [ pt0 [ 0 ] , pt0 [ 1 ] ] ) secondary_location = 'bottom' elif location . lower ( ) == 'bottom' : axis . setOption ( 'axis_point1' , [ pt1 [ 0 ] , pt0 [ 1 ] ] ) axis . setOption ( 'axis_point2' , [ pt0 [ 0 ] , pt0 [ 1 ] ] ) secondary_location = 'top' return secondary_location