ipympl
ipympl copied to clipboard
mpl widgets: LassoSelector/RectangleSelector
Hi,
I build a backend for this package in vaex, so vaex is showing many rows/particles in this matplotlib backend. However, I'd like to select things using the lasso or rectangular selector, the rectangular works ok, it draws sth on the screen (see also screenshot). To enabled it I used a ipywidget togglebuttons, but it doesn't play nice with the other buttons (for instance, how would I switch between zoom rectangle and the rectangleselector?). And the lasso selector doesn't draw anything on the screen. Would be really nice to have this, it would be the first time you could do a lasso selection in the notebook to do a freehand selection for ~1 billion rows.
I suspect this is because draw_idle
is not working correctly for the widget backend.
The issue of the Lasso selector not drawing has been resolved by matplotlib issue 15852. Until that is released you can do: LassoSelector(..., useblit=False)
and it will draw the line.