LabelItem

class pyqtgraph.LabelItem(text, parent=None, **args)

GraphicsWidget displaying text. Used mainly as axis labels, titles, etc.

Note: To display text inside a scaled view (ViewBox, PlotWidget, etc) use QGraphicsTextItem
with the flag ItemIgnoresTransformations set.
__init__(text, parent=None, **args)
setAttr(attr, value)

Set default text properties. See setText() for accepted parameters.

setText(text, **args)

Set the text and text properties in the label. Accepts optional arguments for auto-generating a CSS style string:

color: string (example: ‘CCFF00’) size: string (example: ‘8pt’) bold: boolean italic: boolean

Previous topic

ScaleBar

Next topic

VTickGroup

This Page