chaco.tools.toolbars.plot_toolbar module¶
-
class
chaco.tools.toolbars.plot_toolbar.
PlotToolbar
(component=None, *args, **kw)¶ Bases:
enable.container.Container
,chaco.abstract_overlay.AbstractOverlay
A toolbar for embedding buttons in
adds a button to the toolbar
-
auto_hide
= Bool(True)¶ should the toolbar go automatically go back into hiding when the mouse is not hovering over it
button spacing is defined as the number of pixels on either side of a button. The gap between 2 buttons will be 2 x the button spacing
-
end_radius
= Float(4.0)¶ the radius used to determine how round to make the toolbar’s edges
-
hiding
= Bool(True)¶ Should the toolbar be hidden
-
horizontal_padding
= Float(5.0)¶ how many pixels to put before and after the set of buttons
-
is_in
(x, y)¶ Returns if the point x,y is in the box
-
location
= Enum("top", "right", "bottom", "left")¶ The edge against which the toolbar is placed.
-
normal_left_down
(event)¶ handler for a left mouse click
-
normal_mouse_move
(event)¶ handler for normal mouse move
-
on_hover
(tooltip)¶
-
overlay
(other_component, gc, view_bounds=None, mode='normal')¶ Draws this component overlaid on another component.
-
show_tooltips
= Bool(False)¶ Should tooltips be shown?
-
vertical_padding
= Float(5.0)¶ how many pixels to put on top and bottom the set of buttons
-
class
chaco.tools.toolbars.plot_toolbar.
PlotToolbarHover
(component=None, **traits)¶ Bases:
enable.tools.hover_tool.HoverTool
-
normal_mouse_move
(event)¶
-
on_hover
()¶ This gets called when all the conditions of the hover action have been met, and the tool determines that the mouse is, in fact, hovering over a target region on the component.
By default, this method call self.callback (if one is configured).
-