pyporegui.graphicsItems.histogram_item module

class pyporegui.graphicsItems.histogram_item.HistogramItem(*args, **kwargs)[source]

Bases: pyqtgraph.graphicsItems.PlotItem.PlotItem.PlotItem

__init__(*args, **kwargs)[source]
add_histogram(data, n_bins=None, color=None)[source]

Adds a histogram to the plot.

Parameters:
  • data (numpyArray) – Data for histogram.
  • n_bins (IntType) – Number of bins for the histogram. Default value is sqrt(data.size).
  • color (QtGui.QColor) – (Optional) color of the new histogram.
remove_item_at(index)[source]

Removes the histogram item at index.

Parameters:index (IntType) – Index of the histogram to remove.
staticMetaObject = <PySide.QtCore.QMetaObject object at 0x4b28248>