pgWidg.addPlot creates a plotItem called graph in this case.    
graph.plot creates and returns a PlotDataItem.  
The PlotDataItem creates a PlotCurveItem you can get by calling 
curve2.curve.

So your first two curves have created PlotCurveItems but you are not 
calling them directly.

To make curve2 act like curve3 do:

curve2.curve.setClickable(True) #can set width=5  so that you can click 
within  5 pixels to emit signal
curve2.curve.sigClicked.connect(clicked2)

-- 
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/deb7ddaa-45f1-4ae0-8971-8fe7147e53e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to