Inherits from
- BaseDataRange: enthought.chaco.base_data_range.BaseDataRange
Attributes
- bounds_func
A user supplied function returning the proper bounding interval. bounds_func takes (data_low, data_high, margin, tight_bounds) and returns (low, high)
bounds_func = Callable
- default_state
Default tracking state. This value is used when self.reset() is called.
- 'auto': Both bounds reset to 'auto'.
- 'high_track': The high bound resets to 'track', and the low bound resets to 'auto'.
- 'low_track': The low bound resets to 'track', and the high bound resets to 'auto'.
default_state = Enum('auto', 'high_track', 'low_track')
- default_tracking_amount
When either high or low tracks the other, track by this amount.
default_tracking_amount = CFloat(20.0)
- epsilon
The minimum percentage difference between low and high. That is, (high-low) >= epsilon * low.
epsilon = CFloat(9.9999999999999995e-021)
- fit_to_subset
Is this range dependent upon another range?
fit_to_subset = Bool(False)
- high
The actual value of the upper bound of this range (overrides AbstractDataRange). To set it, use high_setting.
high = Property
- high_setting
Property for the upper bound of this range (overrides AbstractDataRange).
- 'auto': The upper bound is automatically set at or above the maximum of the data.
- 'track': The upper bound tracks the lower bound by tracking_amount.
- CFloat: An explicit value for the upper bound
high_setting = Property(Trait('auto', 'auto', 'track', CFloat))
- low
The actual value of the lower bound of this range (overrides AbstractDataRange). To set it, use low_setting.
low = Property
- low_setting
Property for the lower bound of this range (overrides AbstractDataRange).
- 'auto': The lower bound is automatically set at or below the minimum of the data.
- 'track': The lower bound tracks the upper bound by tracking_amount.
- CFloat: An explicit value for the lower bound
low_setting = Property(Trait('auto', 'auto', 'track', CFloat))
- margin
The amount of margin to place on either side of the data, expressed as a percentage of the full data width
margin = Float(0.050000000000000003)
- tight_bounds
Do "auto" bounds imply an exact fit to the data? If False, they pad a little bit of margin on either side.
tight_bounds = Bool(True)
- tracking_amount
The current tracking amount. This value changes with zooming.
tracking_amount = default_tracking_amount
Inherited from base classes
Method summary
- bound_data(self, data)
- clip_data(self, data)
- mask_data(self, data)
- refresh(self)
- reset(self)
- scale_tracking_amount(self, multiplier)
- set_bounds(self, low, high)
- set_default_tracking_amount(self, amount)
- set_tracking_amount(self, amount)
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
- bound_data(self, data)
Returns a tuple of indices for the start and end of the first run of data that falls within the range.
Implements AbstractDataRange.
- 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, based on default_state.
- scale_tracking_amount(self, multiplier)
Sets the tracking_amount to a new value, scaled by multiplier.
- set_bounds(self, low, high)
Sets all the bounds of the range simultaneously.
Implements AbstractDataRange.
- set_default_tracking_amount(self, amount)
Sets the default_tracking_amount to a new value, amount.
- set_tracking_amount(self, amount)
Sets the tracking_amount to a new value, amount.