Skip to content

Add rectangular selection tool#482

Merged
jvkersch merged 5 commits into
masterfrom
rect-select
Sep 1, 2019
Merged

Add rectangular selection tool#482
jvkersch merged 5 commits into
masterfrom
rect-select

Conversation

@notmatthancock
Copy link
Copy Markdown
Contributor

@notmatthancock notmatthancock commented Aug 25, 2019

This adds a subclass, RectangularSelection, of the LassoSelection tool that allows selection via a rectangular bounding box. This is a much quicker user interaction for situations where the selection region does not need to be as precise as the lasso tool allows or when the data being selected lie on a regular grid.

This also adds (yet another!) scatter selection demo script, which augments the lasso selection demo:

rect-select

@corranwebster
Copy link
Copy Markdown
Contributor

This looks good, and nicely done - a neat approach that I wouldn't have thought of to get this effect.

I know that the superclass doesn't have any tests, but any chance for tests for this?

@notmatthancock
Copy link
Copy Markdown
Contributor Author

I know that the superclass doesn't have any tests, but any chance for tests for this?

Sure, I added a test to check for selecting the middle two of four co-linear points.

@corranwebster
Copy link
Copy Markdown
Contributor

Thanks. LGTM. I'll leave it up to @jvkersch to manage the merge unless there is some urgency.

@jvkersch jvkersch merged commit 1888da3 into master Sep 1, 2019
@jvkersch jvkersch deleted the rect-select branch September 1, 2019 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants