API Reference for Enthought Tool Suite 2.7.1
CAUTION: This is an old file from Chaco 1.x to support the spatial subdivision structures. It will be refactored soon.
If you are looking for Chaco2's mappers (subclasses of AbstractMapper), look in abstract_mapper.py, linear_mapper.py, and log_mapper.py.
Defines AbstractDataMapper and BruteForceDataMapper classes, and related trait and functions.
Expresses sorting order of
ArraySortTrait = Enum('ascending', 'descending')
Returns a Numeric array that is the concatenation of the input 1-D arys along a new axis. This function is basically equivalent to array(zip(*arys)), but is more resource-efficient.
concat_point_arrays(list_of_point_arrays) -> point_array (Nx2)
The list_of_point_arrays parameter is a standard Python list-like object with Nx2 arrays inside it.
Example:
concat_point_arrays( [array([[0,0], [1,1]]), array([[2,2], [3,3]])] )
returns the following result:
array([ [0,0], [1,1], [2,2], [3,3] ])
Returns a left-shifted version of ary with newval inserted on the right.
Returns a right-shifted version of ary with newval inserted on the left.
sort_points(array_of_points, index=<0|1>) -> sorted_array
Takes a list of points as an Nx2 array and sorts them according to their x-coordinate (index=0) or y-coordinate (index=1).
| Local name | Refers to |
|---|---|
| Any | enthought.traits.traits.Any |
| argmax | numpy.argmax |
| argmin | numpy.argmin |
| argsort | numpy.argsort |
| array | numpy.array |
| Bool | enthought.traits.traits.Bool |
| concatenate | numpy.concatenate |
| Enum | enthought.traits.traits.Enum |
| Float | enthought.traits.traits.Float |
| HasStrictTraits | enthought.traits.has_traits.HasStrictTraits |
| newaxis | numpy.newaxis |
| Property | enthought.traits.traits.Property |
| Set | sets.Set |
| sort | numpy.sort |
| take | numpy.take |
| transpose | numpy.transpose |
| Tuple | enthought.traits.traits.Tuple |
Copyright © 2002-2008 Enthought, Inc.