Is it possible to use a ROI to select ScatterplotItemPoints?The PyQtGraph examples only show ROI interacting with Raster images, not point data.
# get ROI shape in coordinate system of the scatter plotroiShape = roi.mapToItem(scatterPlot, roi.shape())# Get list of all points inside shapeselected = [pt for pt in scatterPlotPoints if roiShape.contains(pt)]
--
You received this message because you are subscribed to a topic in the Google Groups "pyqtgraph" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pyqtgraph/KCOSX_D_ctA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pyqtgraph+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/CACZXET8p56eChL6QbQ64NR-8YGT1DOGPbh8dZ%3DdMh_EeYKKjNQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
From it I understand that there are no built-in functions for point in ROI shape check.
I'll have to decide on the best way to do it considering that I might have many thousands of points and it will get too slow.
Might even stick with the rectangle for performance and simplicity.
--
You received this message because you are subscribed to a topic in the Google Groups "pyqtgraph" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pyqtgraph/KCOSX_D_ctA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pyqtgraph+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/CACZXET-juf4W%3D6Q01_GNHOMCsgL-QaPf6UyJQEOhSZAxvTyM5g%40mail.gmail.com.