chaco.examples.demo.basic.scatter_inspector2 module

Overlay to display the data attached to a scatter point hovered over.

class chaco.examples.demo.basic.scatter_inspector2.DataframeScatterInspector(component=None, **traits)

Bases: chaco.tools.scatter_inspector.ScatterInspector

data = Instance(pd.DataFrame)

Data structure to gather all data to display neatly

class chaco.examples.demo.basic.scatter_inspector2.DataframeScatterOverlay(component=None, *args, **kw)

Bases: chaco.overlays.text_box_overlay.TextBoxOverlay

Overlay for displaying hovered data point information.

inspector = Instance(ScatterInspector)

The inspector tool which has hover information

message_for_data = Callable

Function which takes and index and returns an info string.

scatter_point_found(event)
class chaco.examples.demo.basic.scatter_inspector2.Demo

Bases: traits.has_traits.HasTraits