parameters: (self, shift, CoordType, ReDraw=True)
docstring: move the image in the window.
  
          shift is an (x,y) tuple, specifying the amount to shift in each direction
  
          It can be in any of three coordinates: Panel, Pixel, World,
          specified by the CoordType parameter
  
          Panel coordinates means you want to shift the image by some
          fraction of the size of the displaed image
  
          Pixel coordinates means you want to shift the image by some number of pixels
  
          World coordinates mean you want to shift the image by an amount
          in Floating point world coordinates
docstring_summary: move the image in the window.
docstring_tokens: move the image in the window .
function: def MoveImage(self, shift, CoordType, ReDraw=True):
          """
          move the image in the window.
  
          shift is an (x,y) tuple, specifying the amount to shift in each direction
  
          It can be in any of three coordinates: Panel, Pixel, World,
          specified by the CoordType parameter
  
          Panel coordinates means you want to shift the image by some
          fraction of the size of the displaed image
  
          Pixel coordinates means you want to shift the image by some number of pixels
  
          World coordinates mean you want to shift the image by an amount
          in Floating point world coordinates
  
          """
          shift = N.asarray(shift,N.float)
          CoordType = CoordType.lower()
          if CoordType == 'panel':# convert from panel coordinates
              shift = shift * N.array((-1,1),N.float) *self.PanelSize/self.TransformVector
          elif CoordType == 'pixel': # convert from pixel coordinates
              shift = shift/self.TransformVector
          elif CoordType == 'world': # No conversion
              pass
          else:
              raise FloatCanvasError('CoordType must be either "Panel", "Pixel", or "World"')
  
          self.ViewPortCenter = self.ViewPortCenter + shift
          self.MapProjectionVector = self.ProjectionFun(self.ViewPortCenter)
          self.TransformVector = N.array((self.Scale,-self.Scale),N.float) * self.MapProjectionVector
          self._BackgroundDirty = True
          if ReDraw:
              self.Draw()
function_tokens: def MoveImage ( self , shift , CoordType , ReDraw = True ) : shift = N . asarray ( shift , N . float ) CoordType = CoordType . lower ( ) if CoordType == 'panel' : # convert from panel coordinates shift = shift * N . array ( ( - 1 , 1 ) , N . float ) * self . PanelSize / self . TransformVector elif CoordType == 'pixel' : # convert from pixel coordinates shift = shift / self . TransformVector elif CoordType == 'world' : # No conversion pass else : raise FloatCanvasError ( 'CoordType must be either "Panel", "Pixel", or "World"' ) self . ViewPortCenter = self . ViewPortCenter + shift self . MapProjectionVector = self . ProjectionFun ( self . ViewPortCenter ) self . TransformVector = N . array ( ( self . Scale , - self . Scale ) , N . float ) * self . MapProjectionVector self . _BackgroundDirty = True if ReDraw : self . Draw ( )