ScatterPlotWidget

class pyqtgraph.ScatterPlotWidget(parent=None)

Given a record array, display a scatter plot of a specific set of data. This widget includes controls for selecting the columns to plot, filtering data, and determining symbol color and shape. This widget allows the user to explore relationships between columns in a record array.

The widget consists of four components:

  1. A list of column names from which the user may select 1 or 2 columns to plot. If one column is selected, the data for that column will be plotted in a histogram-like manner by using pseudoScatter(). If two columns are selected, then the scatter plot will be generated with x determined by the first column that was selected and y by the second.
  2. A DataFilter that allows the user to select a subset of the data by specifying multiple selection criteria.
  3. A ColorMap that allows the user to determine how points are colored by specifying multiple criteria.
  4. A PlotWidget for displaying the data.
__init__(parent=None)
setData(data)

Set the data to be processed and displayed. Argument must be a numpy record array.

setFields(fields)

Set the list of field names/units to be processed.

The format of fields is the same as used by ColorMapWidget.setFields

Previous topic

ColorMapWidget

Next topic

GraphicsView

This Page