Repository navigation
Interactive span selector improvement #20113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
QuLogic
merged 35 commits into
matplotlib:master
from
ericpre:interactive_span_selector
Jun 30, 2021
Merged
Changes from 25 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
afa875f
Add interactive option to SpanSelector to change it interactively aft…
ericpre 6ebf76a
Add drag_from_anywhere functionality.
ericpre 01319f1
Add test for dragging span selector.
ericpre cc1d69a
Use line handlers for span selector
ericpre 7d37461
Set handle properties.
ericpre db23069
Update docstring.
ericpre db8b587
Tidy up.
ericpre 369ff9d
Add API deprecation.
ericpre a3c321c
Make SpanSelector consistent with RectangleSelector to further improv…
ericpre 349c134
Test move outside of axis.
ericpre 52c3666
flake8 fixes.
ericpre bc3808b
Use @_api.rename_parameter instead of @_api.delete_parameter to renam…
ericpre 1e774e0
Allow setting extents before the SpanSelector/RectangleSelector/Ellip…
ericpre 4bf2d09
Privatize draw_shape for SpanSelector, RectangleSelector and EllipseS…
ericpre bb3c1ae
Deprecate SpanSelector.pressv
ericpre 5122318
Reset arguments order in SpanSelector
ericpre aa023f4
Improve docstring, argument name, fix `set_animated`, `set_visible` i…
ericpre 03d1414
Make rect and rectprops private (with deprecation)
ericpre 524f2b7
Remove vmin, vmax of span selector, use extents instead
ericpre 5587bb4
Privatize more attributes, which are not expected to be used by users.
ericpre fb7bdd7
Fix flake8 compliance
ericpre f10ab5c
MNT: restore clearing selection with 0-width selection
tacaswell 472072b
DOC: show off more keyword arguments in span selector demo
tacaswell ab9eebf
Avoid calling update when clearing the span selector with 0-width sel…
ericpre bbf1156
Add new features and API changes entries
ericpre 3f72e17
Fix typo and docstring
ericpre 8eeea02
Privatize interactive in RectangleSelector and EllipseSelector
ericpre 6266fcf
Fix clearing span without blitting.
ericpre ff07b6e
Clear RectangleSelector and EllipseSelector when clicking outside the…
ericpre 9b98eec
Deprecate `SpanSelector.span_stays` attributes
ericpre d123ebf
Deprecate `SpanSelector.prev` attribute
ericpre f64e98b
Allow changing direction of span selector
ericpre 7abf57c
Fix typos
ericpre e280ed9
Use deprecate_privatize_attribute in favour of deprecate to simplify …
ericpre 92d1705
Use the property setter of direction when initialising a SpanSelector…
ericpre File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| SpanSelector | ||
| ~~~~~~~~~~~~ | ||
| ``span_stays`` is deprecated, use ``interactive`` argument instead | ||
| Several `~matplotlib.widgets.SpanSelector` class internals have been privatized | ||
| and deprecated: | ||
| - ``pressv`` | ||
| - ``rect`` | ||
| - ``rectprops`` | ||
| - ``active_handle`` | ||
|
|
||
|
|
||
| Several `~matplotlib.widgets.RectangleSelector` and | ||
| `~matplotlib.widgets.EllipseSelector` class internals have been privatized and | ||
| deprecated: | ||
| - ``to_draw`` | ||
| - ``drawtype`` | ||
| - ``rectprops`` | ||
| - ``active_handle`` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,12 @@ | ||
| Dragging selectors | ||
| ------------------ | ||
|
|
||
| The `~matplotlib.widgets.RectangleSelector` and | ||
| `~matplotlib.widgets.EllipseSelector` have a new keyword argument, | ||
| The `~matplotlib.widgets.SpanSelector`, `~matplotlib.widgets.RectangleSelector` | ||
| and `~matplotlib.widgets.EllipseSelector` have a new keyword argument, | ||
| *drag_from_anywhere*, which when set to `True` allows you to click and drag | ||
| from anywhere inside the selector to move it. Previously it was only possible | ||
| to move it by either activating the move modifier button, or clicking on the | ||
| central handle. | ||
|
|
||
| The size of the `~matplotlib.widgets.SpanSelector` can now be changed using | ||
| the edge handles. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.