chaco.tools.legend_highlighter module

class chaco.tools.legend_highlighter.LegendHighlighter(component=None, **traits)

Bases: chaco.tools.legend_tool.LegendTool

A tool for legends that allows clicking on the legend to show or hide certain plots.

dim_factor = Float(3.0)

What to divide the alpha value by when plot is not selected

drag_button = "right"

Which mousebutton to use to move the legend

line_scale = Float(2.0)

How much to scale the line when it is selected or deselected

normal_left_down(event)
chaco.tools.legend_highlighter.concat()

chain.from_iterable(iterable) –> chain object

Alternate chain() constructor taking a single iterable argument that evaluates lazily.

chaco.tools.legend_highlighter.get_hit_plots(legend, event)