FillBetweenItem#

class pyqtgraph.FillBetweenItem(curve1, curve2, brush=None, pen=None, fillRule=FillRule.OddEvenFill)[source]#

GraphicsItem filling the space between two PlotDataItems.

__init__(curve1, curve2, brush=None, pen=None, fillRule=FillRule.OddEvenFill)[source]#

FillBetweenItem fills a region between two curves with a specified QBrush.

Parameters:
Raises:
setBrush(*args, **kwds)[source]#

Change the fill brush. Accepts the same arguments as mkBrush()

setCurves(curve1, curve2)[source]#

Method to set the Curves to draw the FillBetweenItem between

Parameters:
Raises:

TypeError – Raised when input arguments are not either PlotDataItem or PlotCurveItem

setFillRule(fillRule=FillRule.OddEvenFill)[source]#

Set the underlying QPainterPath to the specified FillRule

This can be useful for allowing in the filling of voids.

Parameters:

fillRule (FillRule) – A member of the FillRule enum

setPen(*args, **kwds)[source]#

Change the fill pen. Accepts the same arguments as mkColor()