HistogramWidget#

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

Bases: SingleAxesWidget

Display a histogram of the currently selected layer.

Attributes Summary

input_layer_types

Type of layer taken as input

n_layers_input

Number of layers taken as input

Methods Summary

draw()

Clear the axes and histogram the currently selected layer/slice.

on_update_layers()

Called when the selected layers are updated.

Attributes Documentation

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

Type of layer taken as input

n_layers_input = Interval(1, 1)#

Number of layers taken as input

Methods Documentation

draw() None#

Clear the axes and histogram the currently selected layer/slice.

on_update_layers() None#

Called when the selected layers are updated.