chaco.overlays.databox module

class chaco.overlays.databox.DataBox(*args, **kw)

Bases: chaco.abstract_overlay.AbstractOverlay

An overlay that is a box defined by data space coordinates. This can be used as a base class for various kinds of zoom boxes. Unlike the “momentary” zoom box drawn for the ZoomTool, a ZoomBox is a more permanent visual component.

overlay(component, gc, view_bounds=None, mode='normal')

Draws this component overlaid on another component.