API Reference for Enthought Tool Suite 2.7.1
Tick generator classes and helper functions for calculating axis tick-related values (i.e., bounds and intervals).
Calculates appropriate upper and lower bounds for the axis from the data bounds and the given axis interval.
The boundaries hit either exactly on the lower and upper values or on the tick mark just beyond the lower and upper values.
Calculates the tick interval for a range.
The boundaries for the data to be plotted on the axis are:
data_bounds = (data_low,data_high)
The function chooses the number of tick marks, which can be between 3 and 9 marks (including end points), and chooses tick intervals at 1, 2, 2.5, 5, 10, 20, ...
Finds locations for axis tick marks.
Calculates the locations for tick marks on an axis. The bound_low, bound_high, and tick_interval parameters specify how the axis end points and tick interval are calculated.
An array of tick mark locations. The first and last tick entries are the axis end points.
Finds an axis end point that includes the value end_point.
If the tick mark interval results in a tick mark hitting directly on the end point, end_point is returned. Otherwise, the location of the tick mark just past end_point is returned. The is_upper parameter specifies whether end_point is at the upper (True) or lower (False) end of the axis.
Returns a "nice" range and interval for a given data range and a preferred number of ticks. From Paul Heckbert's algorithm in Graphics Gems.
Returns True if range is a positive base-2 number (2, 4, 8, 16, ...).
Returns the base 2 logarithm of a number (or array).
Like auto_ticks(), but for log scales.
Computes the best tick interval length to achieve a specified number of tick intervals.
Returns a float indicating the tick interval length.
| Local name | Refers to |
|---|---|
| Any | enthought.traits.traits.Any |
| arange | numpy.arange |
| argsort | numpy.argsort |
| array | numpy.array |
| ceil | numpy.ceil |
| concatenate | numpy.concatenate |
| equal | numpy.equal |
| finfo | numpy.finfo |
| float64 | numpy.float64 |
| floor | numpy.floor |
| HasTraits | enthought.traits.has_traits.HasTraits |
| linspace | numpy.linspace |
| log10 | numpy.log10 |
| minimum | numpy.minimum |
| ndarray | numpy.ndarray |
| newaxis | numpy.newaxis |
| putmask | numpy.putmask |
| shape | numpy.shape |
Copyright © 2002-2008 Enthought, Inc.