Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
pep8ify examples/ part 3#3183
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Closed
Uh oh!
There was an error while loading.Please reload this page.
Closed
Changes from1 commit
Commits
Show all changes
4 commits Select commitHold shift + click to select a range
067c037
pep8ify examples/ part 3
twmr0c39c1a
found a few pep8 issued not fixed by autopep8 in examples/misc
twmr54d4b58
found a few pep8 issued not fixed by autopep8 in examples/event_handling
twmr469412f
use np.hypot instead of np.abs(complex) as it is easier to understand
twmrFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
found a few pep8 issued not fixed by autopep8 in examples/event_handling
Signed-off-by: Thomas Hisch <t.hisch@gmail.com>
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commit54d4b585f9314ac0dd9dfb7eda7ffcb91647c9fb
There are no files selected for viewing
11 changes: 7 additions & 4 deletionsexamples/event_handling/pipong.py
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
3 changes: 2 additions & 1 deletionexamples/event_handling/poly_editor.py
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
12 changes: 6 additions & 6 deletionsexamples/event_handling/test_mouseclicks.py
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
6 changes: 3 additions & 3 deletionsexamples/event_handling/timers.py
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 |
---|---|---|
@@ -14,8 +14,8 @@ def update_title(axes): | ||
x = np.linspace(-3, 3) | ||
ax.plot(x, x * x) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Excessive whitespace. | ||
# Create a new timer object. Set the interval 500 milliseconds (1000 is | ||
#default)and tell the timer what function should be called. | ||
timer = fig.canvas.new_timer(interval=100) | ||
timer.add_callback(update_title, ax) | ||
timer.start() | ||
@@ -24,6 +24,6 @@ def update_title(axes): | ||
# def start_timer(evt): | ||
# timer.start() | ||
# fig.canvas.mpl_disconnect(drawid) | ||
#drawid = fig.canvas.mpl_connect('draw_event', start_timer) | ||
plt.show() |
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.