Skip to content

Commit

Permalink
PEP8: adjust some long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbrc committed Dec 27, 2014
1 parent 8301087 commit 201dd2f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
3 changes: 2 additions & 1 deletion lib/matplotlib/__init__.py
Expand Up @@ -885,7 +885,8 @@ def __getitem__(self, key):
key = alt
return dict.__getitem__(self, key)

# http://stackoverflow.com/questions/2390827/how-to-properly-subclass-dict-and-override-get-set
# http://stackoverflow.com/questions/2390827
# (how-to-properly-subclass-dict-and-override-get-set)
# the default dict `update` does not use __setitem__
# so rcParams.update(...) (such as in seaborn) side-steps
# all of the validation over-ride update to force
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/artist.py
Expand Up @@ -28,7 +28,7 @@
# python trick. The answer is that I need to be able to manipulate
# the docstring, and there is no clever way to do that in python 2.2,
# as far as I can see - see
# http://groups.google.com/groups?hl=en&lr=&threadm=mailman.5090.1098044946.5135.python-list%40python.org&rnum=1&prev=/groups%3Fq%3D__doc__%2Bauthor%253Ajdhunter%2540ace.bsd.uchicago.edu%26hl%3Den%26btnG%3DGoogle%2BSearch
# http://groups.google.com/groups?hl=en&lr=&threadm=mailman.5090.1098044946.5135.python-list%40python.org&rnum=1&prev=/groups%3Fq%3D__doc__%2Bauthor%253Ajdhunter%2540ace.bsd.uchicago.edu%26hl%3Den%26btnG%3DGoogle%2BSearch # noqa


def allow_rasterization(draw):
Expand Down
12 changes: 6 additions & 6 deletions lib/matplotlib/axis.py
Expand Up @@ -1003,19 +1003,19 @@ def _update_ticks(self, renderer):
ds1 = self._get_pixel_distance_along_axis(
interval_expanded[0], -0.5)
except:
warnings.warn("Unable to find pixel distance along axis for\
interval padding of ticks; assuming no interval padding\
needed.")
warnings.warn("Unable to find pixel distance along axis "
"for interval padding of ticks; assuming no "
"interval padding needed.")
ds1 = 0.0
if np.isnan(ds1):
ds1 = 0.0
try:
ds2 = self._get_pixel_distance_along_axis(
interval_expanded[1], +0.5)
except:
warnings.warn("Unable to find pixel distance along axis for\
interval padding of ticks; assuming no interval padding\
needed.")
warnings.warn("Unable to find pixel distance along axis "
"for interval padding of ticks; assuming no "
"interval padding needed.")
ds2 = 0.0
if np.isnan(ds2):
ds2 = 0.0
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/bezier.py
Expand Up @@ -73,7 +73,7 @@ def get_normal_points(cx, cy, cos_t, sin_t, length):
# BEZIER routines

# subdividing bezier curve
# http://www.cs.mtu.edu/~shene/COURSES/cs3621/NOTES/spline/Bezier/bezier-sub.html
# http://www.cs.mtu.edu/~shene/COURSES/cs3621/NOTES/spline/Bezier/bezier-sub.html # noqa


def _de_casteljau1(beta, t):
Expand Down
6 changes: 3 additions & 3 deletions lib/matplotlib/tests/test_dates.py
Expand Up @@ -25,7 +25,7 @@
def test_date_empty():
# make sure mpl does the right thing when told to plot dates even
# if no date data has been presented, cf
# http://sourceforge.net/tracker/?func=detail&aid=2850075&group_id=80706&atid=560720
# http://sourceforge.net/tracker/?func=detail&aid=2850075&group_id=80706&atid=560720 # noqa
fig = plt.figure()
ax = fig.add_subplot(1, 1, 1)
ax.xaxis_date()
Expand Down Expand Up @@ -88,7 +88,7 @@ def test_date_axvline():
@cleanup
def test_too_many_date_ticks():
# Attempt to test SF 2715172, see
# https://sourceforge.net/tracker/?func=detail&aid=2715172&group_id=80706&atid=560720
# https://sourceforge.net/tracker/?func=detail&aid=2715172&group_id=80706&atid=560720 # noqa
# setting equal datetimes triggers and expander call in
# transforms.nonsingular which results in too many ticks in the
# DayLocator. This should trigger a Locator.MAXTICKS RuntimeError
Expand Down Expand Up @@ -202,7 +202,7 @@ def test_drange():
@cleanup
def test_empty_date_with_year_formatter():
# exposes sf bug 2861426:
# https://sourceforge.net/tracker/?func=detail&aid=2861426&group_id=80706&atid=560720
# https://sourceforge.net/tracker/?func=detail&aid=2861426&group_id=80706&atid=560720 # noqa

# update: I am no longer believe this is a bug, as I commented on
# the tracker. The question is now: what to do with this test
Expand Down

0 comments on commit 201dd2f

Please sign in to comment.