chaco.tools.point_marker module

Defines the PointMarker tool class.

class chaco.tools.point_marker.PointMarker(component=None, **traits)

Bases: enable.base_tool.BaseTool

This tool looks at an XY plot’s index data source and draws a line corresponding to the index indicated by the “selections” metadata.

axis = Enum("index", "value")

The axis that this tool is parallel to.

color = ColorTrait("red")

The color of the line.

draw(gc, view_bounds=None)

Draws this tool on a graphics context.

Implements BaseTool.

draw_mode = "overlay"

This tool is drawn as an overlay (overrides BaseTool).

line_width = Float(1.0)

The width of the line, in pixels.

visible = True

This tool is visible (overrides BaseTool).