import pyqtgraph as pg
from pyqtgraph import PlotWidget, TextItem
from PySide6.QtWidgets import QApplication
if __name__ == "__main__":
app = QApplication([])
widget = PlotWidget()
label = TextItem(html="<div style='color: white;'>Top Left Label</div>")
# PlotWidget.graphicsItem() is None !
label.setParentItem(widget.graphicsItem())
label.setAnchor((0, 0))
label.setPos(0.05, 0.95)
widget.addItem(label)
widget.show()
app.exec()
--
You received this message because you are subscribed to the Google Groups
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/pyqtgraph/9fd3517a-416c-4a04-8ea9-cb1abd069296n%40googlegroups.com.