ScatterWidget#

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

Bases: ScatterBaseWidget

Scatter data in two similarly shaped layers.

If there are more than 500 data points, a 2D histogram is displayed instead of a scatter plot, to avoid too many scatter points.

Attributes Summary

input_layer_types

Type of layer taken as input

n_layers_input

Number of layers taken as input

Attributes Documentation

input_layer_types: tuple[Layer, ...] = (<class 'napari.layers.image.image.Image'>,)#

Type of layer taken as input

n_layers_input = Interval(2, 2)#

Number of layers taken as input