parameters: (self, which, index=0)
return_statement: return self[(slice(None),)*which + (index,) + (slice(None),)*(self.ndim-which-1)]
docstring: Bind the axis identified by 'which' to the given 'index'.
          This is similar to::
  
              array[:, index, ...]
  
          but you do not need to know the position of the axis when you use the
          axis key (according to axistags). For example, to get the green channel
          of an RGBImage, you write::
  
              >>> rgb = vigra.RGBImage((200, 100))
              >>> green = rgb.bindAxis('c', 1)
  
          This gives the correct result irrespective of the axis ordering.
docstring_summary: Bind the axis identified by 'which' to the given 'index'.
          This is similar to::
docstring_tokens: Bind the axis identified by which to the given index . This is similar to ::
function: def bindAxis(self, which, index=0):
          '''
          Bind the axis identified by 'which' to the given 'index'.
          This is similar to::
  
              array[:, index, ...]
  
          but you do not need to know the position of the axis when you use the
          axis key (according to axistags). For example, to get the green channel
          of an RGBImage, you write::
  
              >>> rgb = vigra.RGBImage((200, 100))
              >>> green = rgb.bindAxis('c', 1)
  
          This gives the correct result irrespective of the axis ordering.
          '''
          if type(which) == str:
              which = self.axistags.index(which)
          return self[(slice(None),)*which + (index,) + (slice(None),)*(self.ndim-which-1)]
function_tokens: def bindAxis ( self , which , index = 0 ) : if type ( which ) == str : which = self . axistags . index ( which ) return self [ ( slice ( None ) , ) * which + ( index , ) + ( slice ( None ) , ) * ( self . ndim - which - 1 ) ]