Draw a set of movable markers on a canvas. The markers can be moved with
the mouse. They can be drawn as vertical lines (line type) or as small
boxes (box type). Each marker has a color. Markers can be added or
deleted with ctrl-button-1. A callback is invoked with no arguments when
user mouse interaction selects, moves, adds or removes a marker.
This was designed for display and control of theshold levels shown on a
histogram.
Methods
|
|
|
|
__init__
|
__init__ (
self,
canvas,
canvas_box,
marker_type,
new_marker_color,
connect_markers,
callback,
)
|
|
add_or_delete_marker_cb
|
add_or_delete_marker_cb ( self, event )
|
|
canvas_xy_to_user_xy
|
canvas_xy_to_user_xy ( self, cxy )
|
|
clamp_canvas_xy
|
clamp_canvas_xy ( self, xy )
|
|
closest_marker_index
|
closest_marker_index (
self,
x,
y,
range,
)
|
|
move_marker_cb
|
move_marker_cb ( self, event )
|
|
plot_markers
|
plot_markers ( self )
|
|
select_marker_cb
|
select_marker_cb ( self, event )
|
|
selected_marker
|
selected_marker ( self )
|
|
set_canvas_box
|
set_canvas_box ( self, canvas_box )
|
|
set_markers
|
set_markers ( self, markers )
|
|
set_user_x_range
|
set_user_x_range (
self,
xmin,
xmax,
)
|
|
show
|
show ( self, show )
|
|
unplot_markers
|
unplot_markers ( self )
|
|
update_connections
|
update_connections ( self )
|
|
update_marker_coordinates
|
update_marker_coordinates ( self )
|
|
update_plot
|
update_plot ( self )
|
|
user_xy_to_canvas_xy
|
user_xy_to_canvas_xy ( self, uxy )
|
|