Hello All,
Following is the piece of code that I'm using to plot multiple curves but
how can I define a function to enable mouse clicks to delete any specific
curve by mouse click to select any specific curve and delete it using
keyboard 'del' button.
def plot_lib(self, X, Y, style_=QtCore.Qt.SolidLine):
#self.graphWidget.plotItem.clear()
for i in range(len(X)):
self.graphWidget.plot(X[i], Y[i],
name=str(i),pen=pg.mkPen(width=2, color=np.random.randint(0, 255, 3),
style=style_))
--
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/783bbcd6-af51-4779-bd14-31e71edd9d79n%40googlegroups.com.