Module Import alias identifier ImportFrom alias ImportFrom alias alias Assign NameStore ListLoad Str Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Num NameLoad NameLoad kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad NameLoad Assign NameStore Call NameLoad keyword Str keyword Num keyword Num keyword Str Expr Call AttributeLoad NameLoad attr IfExp CompareIsNot NameLoad NameLoad NameLoad Dict Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore TupleLoad Num Num Assign NameStore TupleLoad Num Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr If CompareIs NameLoad NameLoad body FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Print BinOpMod Str Call AttributeLoad NameLoad attr BinOpAdd BinOpPow Call AttributeLoad NameLoad attr NameLoad Num BinOpPow Call AttributeLoad NameLoad attr NameLoad Num decorator_list Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body If BoolOpOr CompareNotEq AttributeLoad NameLoad attr Num UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareLt NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Return NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Num Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr ListLoad ListLoad NameLoad NameLoad ListLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareNotEq AttributeLoad NameLoad attr Num body Return Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpOr CompareNotEq AttributeLoad NameLoad attr Num CompareIs AttributeLoad NameLoad attr NameLoad body Return If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body If CompareIsNot NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr ExtSlice Index AttributeLoad NameLoad attr Slice TupleLoad NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad Num NameLoad NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If CompareIs NameLoad NameLoad body FunctionDef arguments args defaults vararg body Pass decorator_list Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Return If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If CompareGt AttributeLoad NameLoad attr Num body AugAssignSub AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list If CompareEq NameLoad Str body ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr TupleLoad ListLoad BinOpDiv NameLoad Num BinOpDiv NameLoad Num ListLoad BinOpDiv BinOpMult Num NameLoad Num BinOpDiv NameLoad Num Expr Call AttributeLoad NameLoad attr
N/A N/A numpy np matplotlib lines viewer.canvastools.base CanvasToolBase ToolHandles N/A __all__ N/A LineTool ThickLineTool LineTool N/A CanvasToolBase N/A N/A Widget for line selection in a plot.

    Parameters
    ----------
    manager : Viewer or PlotPlugin.
        Skimage viewer or plot plugin object.
    on_move : function
        Function called whenever a control handle is moved.
        This function must accept the end points of line as the only argument.
    on_release : function
        Function called whenever the control handle is released.
    on_enter : function
        Function called whenever the "enter" key is pressed.
    maxdist : float
        Maximum pixel distance allowed when selecting control handle.
    line_props : dict
        Properties for :class:`matplotlib.lines.Line2D`.
    handle_props : dict
        Marker properties for the handles (also see
        :class:`matplotlib.lines.Line2D`).

    Attributes
    ----------
    end_points : 2D array
        End points of line ((x1, y1), (x2, y2)).
     __init__ N/A N/A self manager on_move on_release on_enter maxdist line_props handle_props N/A None None None 10 None None kwargs N/A N/A N/A N/A N/A super LineTool self __init__ manager on_move on_move on_enter on_enter on_release on_release kwargs N/A props N/A dict color r linewidth 1 alpha 0.4 solid_capstyle butt N/A N/A N/A props update N/A N/A line_props None line_props N/A N/A N/A self linewidth N/A props N/A linewidth N/A N/A self maxdist maxdist N/A N/A self _active_pt None N/A x N/A 0 0 N/A y N/A 0 0 N/A N/A self _end_pts N/A N/A np transpose N/A x y N/A N/A self _line N/A N/A lines Line2D x y visible False animated True props N/A N/A N/A N/A self ax add_line N/A self _line N/A N/A self _handles N/A ToolHandles N/A self ax x y marker_props handle_props N/A N/A N/A N/A self _handles set_visible False N/A N/A self artists N/A N/A self _line N/A N/A self _handles artist N/A N/A on_enter None N/A on_enter N/A N/A pts N/A N/A N/A N/A x y N/A N/A np transpose pts N/A N/A length = %0.2f N/A N/A np sqrt N/A N/A N/A N/A np diff x 2 N/A N/A N/A np diff y 2 N/A N/A N/A self callback_on_enter on_enter N/A N/A N/A N/A self manager add_tool self N/A end_points N/A N/A self N/A N/A N/A N/A N/A N/A self _end_pts astype int N/A property end_points N/A N/A self pts N/A N/A N/A N/A self _end_pts N/A N/A np asarray pts N/A N/A N/A N/A self _line set_data N/A N/A np transpose pts N/A N/A N/A N/A self _handles set_data N/A N/A np transpose pts N/A N/A N/A N/A self _line set_linewidth N/A self linewidth N/A N/A N/A self set_visible True N/A N/A N/A self redraw N/A N/A end_points setter hit_test N/A N/A self event N/A N/A N/A N/A N/A N/A event button 1 N/A N/A N/A N/A self ax in_axes event N/A N/A False N/A N/A idx px_dist N/A N/A N/A self _handles closest N/A event x N/A event y N/A N/A px_dist N/A self maxdist N/A N/A N/A self _active_pt idx N/A True N/A N/A N/A self _active_pt None N/A False N/A on_mouse_press N/A N/A self event N/A N/A N/A N/A N/A self set_visible True N/A N/A N/A self _active_pt None N/A N/A N/A self _active_pt 0 N/A N/A x y N/A N/A event xdata N/A event ydata N/A N/A self _end_pts N/A N/A np array N/A N/A x y N/A x y N/A on_mouse_release N/A N/A self event N/A N/A N/A N/A N/A event button 1 N/A N/A N/A N/A self _active_pt None N/A N/A N/A self callback_on_release N/A self geometry N/A N/A N/A self redraw N/A on_move N/A N/A self event N/A N/A N/A N/A N/A N/A event button 1 N/A N/A self _active_pt None N/A N/A N/A N/A N/A N/A N/A self ax in_axes event N/A N/A N/A N/A N/A self update N/A event xdata N/A event ydata N/A N/A N/A self callback_on_move N/A self geometry N/A update N/A N/A self x y N/A None None N/A N/A N/A x None N/A N/A N/A N/A self _end_pts N/A N/A N/A self _active_pt N/A N/A x y N/A N/A self end_points N/A self _end_pts N/A geometry N/A N/A self N/A N/A N/A N/A self end_points N/A property N/A ThickLineTool N/A LineTool N/A N/A Widget for line selection in a plot.

    The thickness of the line can be varied using the mouse scroll wheel, or
    with the '+' and '-' keys.

    Parameters
    ----------
    manager : Viewer or PlotPlugin.
        Skimage viewer or plot plugin object.
    on_move : function
        Function called whenever a control handle is moved.
        This function must accept the end points of line as the only argument.
    on_release : function
        Function called whenever the control handle is released.
    on_enter : function
        Function called whenever the "enter" key is pressed.
    on_change : function
        Function called whenever the line thickness is changed.
    maxdist : float
        Maximum pixel distance allowed when selecting control handle.
    line_props : dict
        Properties for :class:`matplotlib.lines.Line2D`.
    handle_props : dict
        Marker properties for the handles (also see
        :class:`matplotlib.lines.Line2D`).

    Attributes
    ----------
    end_points : 2D array
        End points of line ((x1, y1), (x2, y2)).
     __init__ N/A N/A self manager on_move on_enter on_release on_change maxdist line_props handle_props N/A None None None None 10 None None N/A N/A N/A N/A N/A super ThickLineTool self __init__ manager on_move on_move on_enter on_enter on_release on_release maxdist maxdist line_props line_props handle_props handle_props N/A N/A on_change None N/A on_change N/A N/A N/A args N/A N/A N/A N/A N/A self callback_on_change on_change N/A on_scroll N/A N/A self event N/A N/A N/A N/A N/A event inaxes N/A N/A N/A N/A N/A event button up N/A N/A N/A N/A self _thicken_scan_line N/A N/A N/A N/A event button down N/A N/A N/A N/A self _shrink_scan_line N/A on_key_press N/A N/A self event N/A N/A N/A N/A N/A event key + N/A N/A N/A N/A self _thicken_scan_line N/A N/A N/A N/A event key - N/A N/A N/A N/A self _shrink_scan_line N/A _thicken_scan_line N/A N/A self N/A N/A N/A N/A self linewidth 1 N/A N/A N/A self update N/A N/A N/A self callback_on_change N/A self geometry N/A _shrink_scan_line N/A N/A self N/A N/A N/A N/A N/A self linewidth 1 N/A N/A N/A self linewidth 1 N/A N/A N/A self update N/A N/A N/A self callback_on_change N/A self geometry N/A N/A N/A N/A __name__ __main__ N/A N/A data viewer ImageViewer N/A image N/A N/A data camera N/A viewer N/A ImageViewer image N/A N/A h w N/A image shape N/A line_tool N/A ThickLineTool viewer N/A N/A line_tool end_points N/A N/A N/A w 3 N/A h 2 N/A N/A N/A 2 w 3 N/A h 2 N/A N/A N/A viewer show