PlotItem

class pyqtgraph.PlotItem(parent=None, name=None, labels=None, title=None, **kargs)
__init__(parent=None, name=None, labels=None, title=None, **kargs)
addAvgCurve(curve)

Add a single curve into the pool of curves averaged together

enableAutoScale()

Enable auto-scaling. The plot will continuously scale to fit the boundaries of its data.

linkXChanged(plot)

Called when a linked plot has changed its X scale

linkYChanged(plot)

Called when a linked plot has changed its Y scale

plot(*args, **kargs)

Add and return a new plot. See PlotDataItem.__init__ for data arguments

Extra allowed arguments are:
clear - clear all plots before displaying new data params - meta-parameters to associate with this data
setLabel(axis, text=None, units=None, unitPrefix=None, **args)

Set the label for an axis. Basic HTML formatting is allowed. Arguments:

axis - must be one of ‘left’, ‘bottom’, ‘right’, or ‘top’ text - text to display along the axis. HTML allowed. units - units to display after the title. If units are given,

then an SI prefix will be automatically appended and the axis values will be scaled accordingly. (ie, use ‘V’ instead of ‘mV’; ‘m’ will be added automatically)
setTitle(title=None, **args)

Set the title of the plot. Basic HTML formatting is allowed. If title is None, then the title will be hidden.

Link this plot’s X axis to another plot (pass either the PlotItem/PlotWidget or the registered name of the plot)

Link this plot’s Y axis to another plot (pass either the PlotItem/PlotWidget or the registered name of the plot)

showAxis(axis, show=True)

Show or hide one of the plot’s axes. axis must be one of ‘left’, ‘bottom’, ‘right’, or ‘top’

showLabel(axis, show=True)

Show or hide one of the plot’s axis labels (the axis itself will be unaffected). axis must be one of ‘left’, ‘bottom’, ‘right’, or ‘top’

sigRangeChanged

Plot graphics item that can be added to any graphics scene. Implements axis titles, scales, interactive viewbox.

updatePlotList()

Update the list of all plotWidgets in the “link” combos

updateXScale()

Set plot to autoscale or not depending on state of radio buttons

updateYScale(b=False)

Set plot to autoscale or not depending on state of radio buttons

viewGeometry()

return the screen geometry of the viewbox

Previous topic

ScatterPlotItem

Next topic

ImageItem

This Page