I'm looking for the same thing (text / label rendering at 3D space) but I'm sorry it's not enough information here (in terms of implementation) to understand how to actually implement this feature.
For example I have this (one line plotting at 3D space), how to add a label near by it.
code sample:
import numpy as np
import pyqtgraph.opengl as gl
from pyqtgraph.Qt import QtWidgets
from pyqtgraph import Vector
class plot3D(object):
def __init__(self):
self.line_input = 0
self.app = QtWidgets.QApplication(sys.argv)
self.w = gl.GLViewWidget()
axis = gl.GLAxisItem()
self.w.addItem(axis)
def plot_line(self):
pl_line = np.array([(338.12, 508.03, 0.0), (338.12, 0.0, 0.0)])
color = (250, 0, 0, 0.7)
newline = gl.GLLinePlotItem(pos=pl_line, color=color, width=2, antialias=False)
self.w.addItem(newline)
self.w.show()
def exec(self):
self.app.exec()
pl3d = plot3D()
pl3d.plot_line()
pl3d.exec()