I'm working on making it so when I click on a point, it will show the 
coordinates...etc

it's crashing when I click on a point with the error:


...python3.6/site-packages/pyqtgraph/graphicsItems/ScatterPlotItem.py", 
> line 817, in pointsAt
>
s2x = s2y = ss * 0.5
>     TypeError: can't multiply sequence by non-int of type 'float'
>


code snippets...

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


    def pointsClicked(self):
        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/8a328efd-d66c-467d-b1d0-f8c468e82907%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to