oops, there are a couple of small mis-types in the code above, I simplified 
it from my own code to make it easier to read...

It should say...

        self.my_curve = pg.PlotDataItem(x=self.t, y=self.y,)
        self.my_curve.sigPointsClicked.connect(self.pointsClicked)
        self.myPlot.addItem(self.my_curve)
        ...


    def pointsClicked(self, points):
        for idx, point in enumerate(points):
            print('{}: x={}, y={}'.format(idx, point.x(), point.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/d3549ab1-ca2b-4489-88ae-cf97f8f8f912%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to