skimage 0.17.2

AttributesParameters

Attributes

end_points : 2D array

End points of line ((x1, y1), (x2, y2)).

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 matplotlib.lines.Line2D .

handle_props : dict

Marker properties for the handles (also see matplotlib.lines.Line2D ).

Widget for line selection in a plot.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /skimage/viewer/canvastools/linetool.py#127
type: <class 'type'>
Commit: