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
Some small cleanups based on Quantified code #6154
Changes from 5 commits
562b18e
2d3de46
ffe02ba
d36412f
09aba5b
8ff0cc2
3cb7787
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,14 +9,12 @@ | |
BSD License | ||
""" | ||
import matplotlib.pyplot as plt | ||
plt.rcdefaults() | ||
|
||
import numpy as np | ||
import matplotlib.pyplot as plt | ||
import matplotlib.path as mpath | ||
import matplotlib.lines as mlines | ||
import matplotlib.patches as mpatches | ||
from matplotlib.collections import PatchCollection | ||
plt.rcdefaults() | ||
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. Same here, but two lines after since it's before a function. |
||
|
||
|
||
def label(xy, text): | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
import matplotlib.pyplot as plt | ||
|
||
from pylab import * | ||
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. Eugh, really, this import exists in the test code? 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. They are removed in the pytest branch as they throw the test finder for a loop (as we would start running parts of the numpy test suite). 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. Apparently so. I decided to get rid of this too here. |
||
import numpy as np | ||
from matplotlib import patches, path, transforms | ||
|
||
from nose.tools import raises | ||
|
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.
If you're going to move this down here, it should have two blank lines above and one blank line after.