Bases: enthought.traits.has_traits.HasTraits
Defines an abstract mapping from a region in input space to a region in output space.
Traits: | updated : Event
|
---|
map_data(screen_val) -> data_val
Maps values from screen space into data space.
map_data_array(screen_vals) -> data_vals
Maps an array of values from screen space into data space. By default, this method just loops over the points, calling map_data() on each one. For vectorizable mapping functions, override this implmentation with a faster one.
map_screen(data_array) -> screen_array
Maps values from data space into screen space.
Bases: enthought.chaco.abstract_mapper.AbstractMapper
Defines an abstract mapping from a 1-D region in input space to a 1-D region in output space.
Traits: | range : Instance(DataRange1D)
low_pos : Float(0.0)
high_pos : Float(1.0)
screen_bounds : Property
|
---|
Bases: enthought.chaco.base_1d_mapper.Base1DMapper
Maps a 1-D data space to and from screen space by specifying a range in data space and a corresponding fixed line in screen space.
This class concerns itself only with metric and not with orientation. So, to “flip” the screen space orientation, simply swap the values for low_pos and high_pos.
map_data(screen_val) -> data_val
Overrides AbstractMapper. Maps values from screen space into data space.
map_data_array(screen_vals) -> data_vals
Overrides AbstractMapper. Maps an array of values from screen space into data space.
map_screen(data_array) -> screen_array
Overrides AbstractMapper. Maps values from data space into screen space.
Bases: enthought.chaco.base_1d_mapper.Base1DMapper
Defines a 1-D logarithmic scale mapping from a 1-D region in input space to a 1-D region in output space.
Traits: | fill_value : Float(1.0)
|
---|
map_data(screen_val) -> data_val
Overrides Abstract Mapper. Maps values from screen space into data space.
map_screen(data_array) -> screen_array
Overrides AbstractMapper. Maps values from data space to screen space.
Bases: enthought.chaco.abstract_mapper.AbstractMapper
Maps a 2-D data space to and from screen space by specifying a 2-tuple in data space or by specifying a pair of screen coordinates.
The mapper concerns itself only with metric and not with orientation. So, to “flip” a screen space orientation, swap the appropriate screen space values for x_low_pos, x_high_pos, y_low_pos, and y_high_pos.
Traits: | range : Instance(DataRange2D)
x_low_pos : Float(0.0)
x_high_pos : Float(1.0)
y_low_pos : Float(0.0)
y_high_pos : Float(1.0)
screen_bounds : Property
|
---|
map_data(screen_pts) -> data_vals
Maps values from screen space into data space.
map_screen(data_pts) -> screen_array
Maps values from data space into screen space.