chaco.tools.rect_zoom module

Defines the RectZoomTool class.

class chaco.tools.rect_zoom.RectZoomTool(component=None, *args, **kw)

Bases: chaco.tools.better_selecting_zoom.BetterSelectingZoom

Allows the user to drag a zoom box around a region of the plot.

This is a subclass of ZoomTool, with different default values for some traits.

always_on = True

The tool is always on; left-clicking initiates a zoom (overrides ZoomTool).

tool_mode = "box"

Selects a box in two dimensions (overrides ZoomTool).