chaco.tools.tracking_zoom module

Defines the TrackingZoom class.

class chaco.tools.tracking_zoom.TrackingZoom(component=None, *args, **kw)

Bases: chaco.tools.better_selecting_zoom.BetterSelectingZoom

Allows the user to zoom in or out on a plot that is using tracking.

The default_state of the data range determines the tracking behavior. For example, if the data range’s default_state is “low_track”, the range’s high value snaps to the right edge and the tracking, low, value follows it by the data range’s tracking_amount value (and vice versa for “high_track”).

normal_mouse_wheel(event)

Handles the mouse wheel being used when the tool is in the ‘normal’ state.

Overrides ZoomTool