parameters: (axisinfo=AxisInfo())
docstring: Create a new singleton axis via the indexing operator. This works similar to
      `numpy.newaxis`, but allows to provide an AxisInfo object for the new axis.
      For example::
  
          >>> s = vigra.ScalarImage((width, height))
          >>> s.axistags  # no channel axis
          x y
          >>> t = s[..., numpy.newaxis]
          >>> t.axistags  # with unknown axis type
          x y ?
          >>> t = s[..., vigra.newaxis(vigra.AxisInfo.c)]
          >>> t.axistags  # with channel axis
          x y c
docstring_summary: Create a new singleton axis via the indexing operator. This works similar to
      `numpy.newaxis`, but allows to provide an AxisInfo object for the new axis.
      For example::
docstring_tokens: Create a new singleton axis via the indexing operator . This works similar to numpy . newaxis but allows to provide an AxisInfo object for the new axis . For example ::
function: def newaxis(axisinfo=AxisInfo()):
      '''
      Create a new singleton axis via the indexing operator. This works similar to
      `numpy.newaxis`, but allows to provide an AxisInfo object for the new axis.
      For example::
  
          >>> s = vigra.ScalarImage((width, height))
          >>> s.axistags  # no channel axis
          x y
          >>> t = s[..., numpy.newaxis]
          >>> t.axistags  # with unknown axis type
          x y ?
          >>> t = s[..., vigra.newaxis(vigra.AxisInfo.c)]
          >>> t.axistags  # with channel axis
          x y c
      '''
      if isinstance(axisinfo, str):
          return eval('AxisInfo.'+axisinfo)
      else:
          return axisinfo
function_tokens: def newaxis ( axisinfo = AxisInfo ( ) ) : if isinstance ( axisinfo , str ) : return eval ( 'AxisInfo.' + axisinfo ) else : return axisinfo