FeaturesScatterWidget#

class napari_matplotlib.FeaturesScatterWidget(napari_viewer: napari.Viewer, parent: QWidget | None = None)#

Bases: ScatterBaseWidget

Widget to scatter data stored in two layer feature attributes.

Attributes Summary

input_layer_types

Type of layer taken as input

n_layers_input

Number of layers taken as input

x_axis_key

Key for the x-axis data.

y_axis_key

Key for the y-axis data.

Methods Summary

draw()

Scatter two features from the currently selected layer.

on_update_layers()

Called when the layer selection changes by self.update_layers().

Attributes Documentation

input_layer_types: tuple[Layer, ...] = (<class 'napari.layers.labels.labels.Labels'>, <class 'napari.layers.points.points.Points'>, <class 'napari.layers.shapes.shapes.Shapes'>, <class 'napari.layers.tracks.tracks.Tracks'>, <class 'napari.layers.vectors.vectors.Vectors'>)#

Type of layer taken as input

n_layers_input = Interval(1, 1)#

Number of layers taken as input

x_axis_key#

Key for the x-axis data.

y_axis_key#

Key for the y-axis data.

Methods Documentation

draw() None#

Scatter two features from the currently selected layer.

on_update_layers() None#

Called when the layer selection changes by self.update_layers().