pyqtgraph.
LabelItem
GraphicsWidget displaying text. Used mainly as axis labels, titles, etc.
Note: To display text inside a scaled view (ViewBox, PlotWidget, etc) use TextItem
__init__
setAttr
Set default text properties. See setText() for accepted parameters.
setText
Set the text and text properties in the label. Accepts optional arguments for auto-generating a CSS style string:
Style Arguments:
color
(str) example: ‘#CCFF00’
size
(str) example: ‘8pt’
bold
(bool)
italic