Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[WIP] Upgrade the LassoSelector #5751

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

Closed
wants to merge 10 commits into from

Conversation

blink1073
Copy link
Member

Adds ability to draw polygons, and to clear the selection (which I do in the last part of this demo).

lasso_selector

@blink1073
Copy link
Member Author

I have no idea what this error means:

ERROR: matplotlib.tests.test_coding_standards.test_pep8_conformance_installed_files
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/matplotlib/matplotlib/venv/lib/python3.5/site-packages/nose/case.py", line 198, in runTest
    self.test(*self.arg)
  File "/home/travis/build/matplotlib/matplotlib/lib/matplotlib/tests/test_coding_standards.py", line 249, in test_pep8_conformance_installed_files
    expected_bad_files=expected_bad_files)
  File "/home/travis/build/matplotlib/matplotlib/lib/matplotlib/tests/test_coding_standards.py", line 155, in assert_pep8_conformance
    '{0}'.format('\n  '.join(unexpectedly_good)))
ValueError: Some exclude patterns were unnecessary as the files they pointed to either passed the PEP8 tests or do not point to a file:
  */matplotlib/widgets.py

@tacaswell
Copy link
Member

That means you need to remove the wigets.py from the black list of 'known bad' files in test_coding_standards.py

@blink1073
Copy link
Member Author

Gotcha, updated.

else:
print(self.verts)
self.verts[-1] = (event.xdata, event.ydata)
print(self.verts)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we really want to have these prints here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, why not? :)

@blink1073
Copy link
Member Author

Closing in favor of #5786.

@blink1073
Copy link
Member Author

Reopening this one, because #5786 turned out to be a lot harder than I hoped.

@blink1073 blink1073 changed the title Upgrade the LassoSelector [WIP] Upgrade the LassoSelector Nov 5, 2016
@blink1073
Copy link
Member Author

On second thought, I am going to close this one, and re-address the lasso after adding the paint and line tools.

@blink1073 blink1073 closed this Nov 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants