How to get the points' data which picked by drawrect

I am using QWebEngineView of pyside2 to load fig created by plotly.express, and one application scenario is I want to use drawrect mode to select several markers on scatter/box chart to exclude the corresponding x, y data then replot chart. But how to get the selected markers’ data? I didn’t find out.

HI @tina, welcome to the community!

I don’t know

but you can parse the coordinates using dash- if you’re open to use it.

Yes, dash is more powerful. But I have to use pyside2 and didn’t find out how to apply dash in pyside2.