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

Skip to content

Commit 1fe5b9c

Browse files
committed
Merge pull request matplotlib#3949 from argriffing/pep8-long-lines
PEP8 : adjust some long lines
2 parents 02da8de + afff431 commit 1fe5b9c

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

lib/matplotlib/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,8 @@ def __getitem__(self, key):
872872
key = alt
873873
return dict.__getitem__(self, key)
874874

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

lib/matplotlib/axis.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -996,19 +996,19 @@ def _update_ticks(self, renderer):
996996
ds1 = self._get_pixel_distance_along_axis(
997997
interval_expanded[0], -0.5)
998998
except:
999-
warnings.warn("Unable to find pixel distance along axis for\
1000-
interval padding of ticks; assuming no interval padding\
1001-
needed.")
999+
warnings.warn("Unable to find pixel distance along axis "
1000+
"for interval padding of ticks; assuming no "
1001+
"interval padding needed.")
10021002
ds1 = 0.0
10031003
if np.isnan(ds1):
10041004
ds1 = 0.0
10051005
try:
10061006
ds2 = self._get_pixel_distance_along_axis(
10071007
interval_expanded[1], +0.5)
10081008
except:
1009-
warnings.warn("Unable to find pixel distance along axis for\
1010-
interval padding of ticks; assuming no interval padding\
1011-
needed.")
1009+
warnings.warn("Unable to find pixel distance along axis "
1010+
"for interval padding of ticks; assuming no "
1011+
"interval padding needed.")
10121012
ds2 = 0.0
10131013
if np.isnan(ds2):
10141014
ds2 = 0.0

lib/mpl_toolkits/axes_grid1/anchored_artists.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def __init__(self, transform, size, label, loc,
119119
120120
>>> import matplotlib.font_manager as fm
121121
>>> fontprops = fm.FontProperties(size=14, family='monospace')
122-
>>> bar = AnchoredSizeBar(ax.transData, 3, '3 units', 4, pad=0.5, sep=5, borderpad=0.5, frameon=False, size_vertical=0.5, color='white', fontproperties=fontprops) # noqa
122+
>>> bar = AnchoredSizeBar(ax.transData, 3, '3 units', 4, pad=0.5, sep=5, borderpad=0.5, frameon=False, size_vertical=0.5, color='white', fontproperties=fontprops)
123123
124124
"""
125125

0 commit comments

Comments
 (0)