chaco.overlays.aligned_container_overlay module

An overlay that aligns itself to the plot

class chaco.overlays.aligned_container_overlay.AlignedContainerOverlay(*components, **traits)

Bases: chaco.overlays.container_overlay.ContainerOverlay

Container overlay that aligns itself to the plot

This overlay takes an alignment which specifies which corner of its container it should align itself with (“ur”, “ul”, “ll”, or “lr”). For tooltip or customizable behaviour, an alternative_position trait can be specified which gives the point to draw the component at, and the align is use to lay the container out relative to that position.

overlay(other, gc, view_bounds, mode)