-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Rectangle Selector Upgrade #3937
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
tacaswell
merged 48 commits into
matplotlib:master
from
blink1073:rectangle_selector_upgrade
Sep 8, 2015
Merged
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
2ed0d49
Store prev event to handle out of bounds selections
blink1073 f8eefe6
Upgrade RectangleSelector with ToolHandles and add Ellipse
blink1073 7f044cf
Add toolhandles class
blink1073 f450df6
Add test using tool handles
blink1073 79294e0
Add a helper function to get axes
blink1073 fd264a2
Do not allow extents outside the image and add a path property
blink1073 438715f
Finish rectangle handle tests and add ellipse test with key modifiers
blink1073 e560713
Rename path property to geometry and return consistent results.
blink1073 5025ba2
Add geometry tests.
blink1073 b118294
Remove extra line.
blink1073 b15cf12
Refactor the event handling methods
blink1073 e96fe81
Update rectangle logic to include '_moving'
blink1073 240cfa2
Clean up event handling and add a state attribute
blink1073 7915db8
Add state handling to onmove
blink1073 f7a9222
More "state" refactoring
blink1073 7c04e25
Add key release and continue refactoring state handling
blink1073 cf491db
Recreate the _get_data method and more event refactoring
blink1073 7ece2fa
Refactor the event creator to call the private methods
blink1073 59ccd81
Preserve existing api for event handler functions
blink1073 a033e8e
Preserve event return values
blink1073 2923f97
Add cleanup to tests and fix default rect prop
blink1073 6549538
Pep8 fixes
blink1073 491276e
Fix bug in SpanSelector when blit=True
blink1073 744308c
Clear events after valid release
blink1073 a7518b3
Do not attempt to draw artists if ax is invisible
blink1073 77dc52b
Ignore events when axes are invisible
blink1073 48ebf30
Fix span selector onmove when we exit axes
blink1073 3ffd7c0
Restore previous behaviour and allow escape to clear the current sele…
blink1073 e802991
Fix failing tests
blink1073 af6e1b4
Fix handling of center handle
blink1073 f5666a4
Remove debug print
blink1073 545a727
STY: PEP8
tacaswell feb58fe
FIX: do not call draw_idle if blitting
tacaswell 7bd67d2
DOC: make rectangle demo use handles
tacaswell b60a84d
Add docstring for EllipseSelector and use print() statements
blink1073 840a671
Revert to old draw types and add docs about key modifiers
blink1073 2a11f5f
Revert change to the example
blink1073 8da7985
Remove extra draw_idle trigger
blink1073 cfe4df1
Update the docstring
blink1073 bc225b6
Remove extraneous doc
blink1073 59145af
Fix failing test
blink1073 d491ac9
Update docstring, use self.useblit, use space for move
blink1073 8e8e473
Use new state_modifier_keys dictionary
blink1073 2ed0419
Clear the active handle when invisible
blink1073 d5b5d86
Collapse the shape on improper draw to prevent showing the previous s…
blink1073 87ab199
Fix test using 'alt' key
blink1073 9eaae32
Clean up and add more docs
blink1073 819804f
Make on_key_release use the state_modifier_keys
blink1073 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These need
@cleanup
decorators, I suspect that is related to the seemingly un-related failures as the global state of pyplot leaks across tests.