matplotlib / matplotlib/ipympl

mpl widgets: LassoSelector/RectangleSelector

Open
#12 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
1.7k
Forks
234
PR merge metrics
No merged PRs in 30d

Description

Hi,

I build a backend for this package in [vaex](http://vaex.astro.rug.nl), 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](https://github.com/maartenbreddels/vaex/blob/master/vaex/notebook/ipympl.py), 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.

![screen shot 2017-04-13 at 21 22 31](https://cloud.githubusercontent.com/assets/1765949/25020610/5d64a73a-208f-11e7-96ab-058fdc28a516.png)

Contributor guide

Open the contributing guide

Research direction

Review vaex/notebook/ipympl.py to understand how the ipywidget toggle buttons currently switch between tools. Then inspect the notebook widget integration for selector activation and drawing behavior. Done means zoom, rectangle selection, and lasso selection can be switched reliably, with the lasso visibly rendering and supporting notebook selection.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.