Repository navigation
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
f8eefe6
Upgrade RectangleSelector with ToolHandles and add Ellipse
7f044cf
Add toolhandles class
f450df6
Add test using tool handles
79294e0
Add a helper function to get axes
fd264a2
Do not allow extents outside the image and add a path property
438715f
Finish rectangle handle tests and add ellipse test with key modifiers
e560713
Rename path property to geometry and return consistent results.
5025ba2
Add geometry tests.
b118294
Remove extra line.
b15cf12
Refactor the event handling methods
e96fe81
Update rectangle logic to include '_moving'
240cfa2
Clean up event handling and add a state attribute
7915db8
Add state handling to onmove
f7a9222
More "state" refactoring
7c04e25
Add key release and continue refactoring state handling
cf491db
Recreate the _get_data method and more event refactoring
7ece2fa
Refactor the event creator to call the private methods
59ccd81
Preserve existing api for event handler functions
a033e8e
Preserve event return values
2923f97
Add cleanup to tests and fix default rect prop
6549538
Pep8 fixes
491276e
Fix bug in SpanSelector when blit=True
744308c
Clear events after valid release
a7518b3
Do not attempt to draw artists if ax is invisible
77dc52b
Ignore events when axes are invisible
48ebf30
Fix span selector onmove when we exit axes
3ffd7c0
Restore previous behaviour and allow escape to clear the current sele…
e802991
Fix failing tests
af6e1b4
Fix handling of center handle
f5666a4
Remove debug print
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
840a671
Revert to old draw types and add docs about key modifiers
2a11f5f
Revert change to the example
8da7985
Remove extra draw_idle trigger
cfe4df1
Update the docstring
bc225b6
Remove extraneous doc
59145af
Fix failing test
d491ac9
Update docstring, use self.useblit, use space for move
8e8e473
Use new state_modifier_keys dictionary
2ed0419
Clear the active handle when invisible
d5b5d86
Collapse the shape on improper draw to prevent showing the previous s…
87ab199
Fix test using 'alt' key
9eaae32
Clean up and add more docs
819804f
Make on_key_release use the state_modifier_keys
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
@cleanupdecorators, I suspect that is related to the seemingly un-related failures as the global state of pyplot leaks across tests.