This is an old thread, but I recently encountered this problem myself.
If you look at the code in the TextItem example that comes with pyqtgraph,
they call setPos() *after* plot.addItem(), so your code would change
FROM
marker = pg.TextItem("W")
marker.setPos(x, y)
p1.addItem(marker)
TO
marker = pg.TextItem("W")
p1.addItem(marker)
marker.setPos(x, y)
--
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/81e6b5a1-fafe-415d-89e9-0fb2aa7178a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.