QwtPlotSeriesItem

class qwt.plot_seriesitem.QwtPlotSeriesItem(title)[source]

Base class for plot items representing a series of samples

setOrientation(orientation)[source]

Set the orientation of the item.

The orientation() might be used in specific way by a plot item. F.e. a QwtPlotCurve uses it to identify how to display the curve int QwtPlotCurve.Steps or QwtPlotCurve.Sticks style.

See also

:py:meth`orientation()`

orientation()[source]
Returns:Orientation of the plot item

See also

:py:meth`setOrientation()`

draw(painter, xMap, yMap, canvasRect)[source]

Draw the complete series

Parameters:
  • painter (QPainter) – Painter
  • xMap (qwt.scale_map.QwtScaleMap) – Maps x-values into pixel coordinates.
  • yMap (qwt.scale_map.QwtScaleMap) – Maps y-values into pixel coordinates.
  • canvasRect (QRectF) – Contents rectangle of the canvas
class qwt.plot_seriesitem.QwtPlotSeriesItem(title)[source]

Base class for plot items representing a series of samples

setOrientation(orientation)[source]

Set the orientation of the item.

The orientation() might be used in specific way by a plot item. F.e. a QwtPlotCurve uses it to identify how to display the curve int QwtPlotCurve.Steps or QwtPlotCurve.Sticks style.

See also

:py:meth`orientation()`

orientation()[source]
Returns:Orientation of the plot item

See also

:py:meth`setOrientation()`

draw(painter, xMap, yMap, canvasRect)[source]

Draw the complete series

Parameters:
  • painter (QPainter) – Painter
  • xMap (qwt.scale_map.QwtScaleMap) – Maps x-values into pixel coordinates.
  • yMap (qwt.scale_map.QwtScaleMap) – Maps y-values into pixel coordinates.
  • canvasRect (QRectF) – Contents rectangle of the canvas