Inherits from
- BaseDataRange: enthought.chaco.base_data_range.BaseDataRange
Attributes
- epsilon
The minimum percentage difference between low and high for each dimension. That is, (high-low) >= epsilon * low.
epsilon = Tuple(CFloat(0.0001), CFloat(0.0001))
- high
The actual value of the upper bound of this range. To set it, use high_setting.
high = Property
- high_setting
Property for the upper bound of this range (overrides AbstractDataRange).
high_setting = Property
- low
The actual value of the lower bound of this range. To set it, use low_setting.
low = Property
- low_setting
Property for the lower bound of this range (overrides AbstractDataRange).
low_setting = Property
- tight_bounds
Do "auto" bounds imply an exact fit to the data? (One Boolean per dimension) If False, the bounds pad a little bit of margin on either side.
tight_bounds = Tuple(Bool(True), Bool(True))
- x_range
Property for the range in the x-dimension.
x_range = Property
- y_range
Property for the range in the y-dimension.
y_range = Property
Inherited from base classes
Method summary
- __init__(self, *args, **kwargs)
- bound_data(self, data)
- clip_data(self, data)
- mask_data(self, data)
- refresh(self)
- reset(self)
- set_bounds(self, low, high)
Inherited from base classes
- __deepcopy__(self, memo)
- __getstate__(self)
- __prefix_trait__(self, name, is_set)
- __reduce_ex__(self, protocol)
- __setstate__(self, state, trait_change_notify = True)
- add_class_trait(cls, name, *trait)
- add_trait(self, name, *trait)
- add_trait_category(cls, category)
- add_trait_listener(self, object, prefix = '')
- all_trait_names(self)
- base_trait(self, name)
- class_default_traits_view(cls)
- class_editable_traits(cls)
- class_trait_names(cls, **metadata)
- class_trait_view(cls, name = None, view_element = None)
- class_trait_view_elements(cls)
- class_traits(cls, **metadata)
- clone_traits(self, traits = None, memo = None, copy = None, **metadata)
- configure_traits(self, filename = None, view = None, kind = None, edit = True, context = None, handler = None, id = '', scrollable = None, **args)
- copy_traits(self, other, traits = None, memo = None, copy = None, **metadata)
- copyable_trait_names(self, **metadata)
- default_traits_view(self)
- edit_traits(self, view = None, parent = None, kind = None, context = None, handler = None, id = '', scrollable = None, **args)
- editable_traits(self)
- has_traits_interface(self, *interfaces)
- on_trait_change(self, handler, name = None, remove = False, dispatch = 'same', priority = False, deferred = False)
- print_traits(self, show_help = False, **metadata)
- remove_trait(self, name)
- remove_trait_listener(self, object, prefix = '')
- reset_traits(self, traits = None, **metadata)
- set_trait_dispatch_handler(cls, name, klass, override = False)
- sync_trait(self, trait_name, object, alias = None, mutual = True, remove = False)
- trait(self, name, force = False, copy = False)
- trait_context(self)
- trait_get(self, *names, **metadata)
- trait_monitor(cls, handler, remove = False)
- trait_names(self, **metadata)
- trait_set(self, trait_change_notify = True, **traits)
- trait_setq(self, **traits)
- trait_subclasses(cls, all = False)
- trait_view(self, name = None, view_element = None)
- trait_view_elements(self)
- trait_views(self, klass = None)
- traits(self, **metadata)
- validate_trait(self, name, value)
Methods
- __init__(self, *args, **kwargs)
- bound_data(self, data)
Not implemented for this class.
- clip_data(self, data)
Returns a list of data values that are within the range.
Implements AbstractDataRange.
- mask_data(self, data)
Returns a mask array, indicating whether values in the given array are inside the range.
Implements AbstractDataRange.
- refresh(self)
If any of the bounds is 'auto', this method refreshes the actual low and high values from the set of the view filters' data sources.
- reset(self)
Resets the bounds of this range.
- set_bounds(self, low, high)
Sets all the bounds of the range simultaneously.
Implements AbstractDataRange.
Parameters
- low : (x,y)
- Lower-left corner of the range.
- high : (x,y)
- Upper right corner of the range.