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:
curve1 (
PlotDataItem|PlotCurveItem) – Line to draw fill fromcurve2 (
PlotDataItem|PlotCurveItem) – Line to draw fill tobrush (
pyqtgraph.mkColor(), optional) – Arguments accepted bymkBrush(), used to create theQBrushinstance used to draw the item by default Nonepen (
pyqtgraph.mkColor(), optional) – Arguments accepted bymkColor(), used to create theQPeninstance used to draw the item by defaultNonefillRule (
QtCore.Qt.FillRule, optional) – FillRule to be applied to the underlyingQPainterPathinstance, by defaultQtCore.Qt.FillRule.OddEvenFill
- Raises:
ValueError – Raised when
Noneis passed in as eithercurve1orcurve2TypeError – Raised when either
curve1orcurve2is not eitherPlotDataItemorPlotCurveItem
- setCurves(curve1, curve2)[source]#
Method to set the Curves to draw the FillBetweenItem between
- Parameters:
curve1 (
PlotDataItem|PlotCurveItem) – Line to draw fill fromcurve2 (
PlotDataItem|PlotCurveItem) – Line to draw fill to
- Raises:
TypeError – Raised when input arguments are not either
PlotDataItemorPlotCurveItem