Package topo :: Package coordmapperfns
[hide private]
[frames] | no frames]

Source Code for Package topo.coordmapperfns

 1  """ 
 2  A family of function objects for transforming one set of coordinates into 
 3  another. 
 4   
 5  Coordinate mapper functions are useful for defining magnifications and 
 6  other kinds of transformations on sheet coordinates, e.g. for defining 
 7  retinal magnification using a CFProjection.  A CoordinateMapperFn 
 8  (e.g. MagnifyingMapper), is applied to an (x,y) pair and returns a new 
 9  (x,y) pair.  To apply a mapping to a CF projection, set the 
10  CFProjection's coord_mapper parameter to an instance of the desired 
11  CoordinateMapperFn. 
12   
13  $Id: __init__.py 6643 2007-10-08 14:30:58Z jbednar $ 
14  """ 
15  __version__='$Revision: 6643 $' 
16   
17  # Automatically discover all .py files in this directory.  
18  import re,os 
19  __all__ = [re.sub('\.py$','',f) for f in os.listdir(__path__[0]) 
20             if re.match('^[^_].*\.py$',f)] 
21