Skip to content

Commit 201dd2f

Browse files
committed
PEP8: adjust some long lines
1 parent 8301087 commit 201dd2f

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

lib/matplotlib/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,8 @@ def __getitem__(self, key):
885885
key = alt
886886
return dict.__getitem__(self, key)
887887

888-
# http://stackoverflow.com/questions/2390827/how-to-properly-subclass-dict-and-override-get-set
888+
# http://stackoverflow.com/questions/2390827
889+
# (how-to-properly-subclass-dict-and-override-get-set)
889890
# the default dict `update` does not use __setitem__
890891
# so rcParams.update(...) (such as in seaborn) side-steps
891892
# all of the validation over-ride update to force

lib/matplotlib/artist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# python trick. The answer is that I need to be able to manipulate
2929
# the docstring, and there is no clever way to do that in python 2.2,
3030
# as far as I can see - see
31-
# 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
31+
# 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
3232

3333

3434
def allow_rasterization(draw):

lib/matplotlib/axis.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,19 +1003,19 @@ def _update_ticks(self, renderer):
10031003
ds1 = self._get_pixel_distance_along_axis(
10041004
interval_expanded[0], -0.5)
10051005
except:
1006-
warnings.warn("Unable to find pixel distance along axis for\
1007-
interval padding of ticks; assuming no interval padding\
1008-
needed.")
1006+
warnings.warn("Unable to find pixel distance along axis "
1007+
"for interval padding of ticks; assuming no "
1008+
"interval padding needed.")
10091009
ds1 = 0.0
10101010
if np.isnan(ds1):
10111011
ds1 = 0.0
10121012
try:
10131013
ds2 = self._get_pixel_distance_along_axis(
10141014
interval_expanded[1], +0.5)
10151015
except:
1016-
warnings.warn("Unable to find pixel distance along axis for\
1017-
interval padding of ticks; assuming no interval padding\
1018-
needed.")
1016+
warnings.warn("Unable to find pixel distance along axis "
1017+
"for interval padding of ticks; assuming no "
1018+
"interval padding needed.")
10191019
ds2 = 0.0
10201020
if np.isnan(ds2):
10211021
ds2 = 0.0

lib/matplotlib/bezier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def get_normal_points(cx, cy, cos_t, sin_t, length):
7373
# BEZIER routines
7474

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

7878

7979
def _de_casteljau1(beta, t):

lib/matplotlib/tests/test_dates.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
def test_date_empty():
2626
# make sure mpl does the right thing when told to plot dates even
2727
# if no date data has been presented, cf
28-
# http://sourceforge.net/tracker/?func=detail&aid=2850075&group_id=80706&atid=560720
28+
# http://sourceforge.net/tracker/?func=detail&aid=2850075&group_id=80706&atid=560720 # noqa
2929
fig = plt.figure()
3030
ax = fig.add_subplot(1, 1, 1)
3131
ax.xaxis_date()
@@ -88,7 +88,7 @@ def test_date_axvline():
8888
@cleanup
8989
def test_too_many_date_ticks():
9090
# Attempt to test SF 2715172, see
91-
# https://sourceforge.net/tracker/?func=detail&aid=2715172&group_id=80706&atid=560720
91+
# https://sourceforge.net/tracker/?func=detail&aid=2715172&group_id=80706&atid=560720 # noqa
9292
# setting equal datetimes triggers and expander call in
9393
# transforms.nonsingular which results in too many ticks in the
9494
# DayLocator. This should trigger a Locator.MAXTICKS RuntimeError
@@ -202,7 +202,7 @@ def test_drange():
202202
@cleanup
203203
def test_empty_date_with_year_formatter():
204204
# exposes sf bug 2861426:
205-
# https://sourceforge.net/tracker/?func=detail&aid=2861426&group_id=80706&atid=560720
205+
# https://sourceforge.net/tracker/?func=detail&aid=2861426&group_id=80706&atid=560720 # noqa
206206

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

0 commit comments

Comments
 (0)