vispy.visuals.histogram module

class vispy.visuals.histogram.HistogramVisual(data, bins=10, color='w', orientation='h')

Bases: vispy.visuals.mesh.MeshVisual

Visual that calculates and displays a histogram of data

Parameters
dataarray-like

Data to histogram. Currently only 1D data is supported.

binsint | array-like

Number of bins, or bin edges.

colorinstance of Color

Color of the histogram.

orientation{‘h’, ‘v’}

Orientation of the histogram.