Skip to content

Commit

Permalink
Merge pull request #3949 from argriffing/pep8-long-lines
Browse files Browse the repository at this point in the history
PEP8 : adjust some long lines
  • Loading branch information
tacaswell committed Feb 19, 2015
2 parents 02da8de + afff431 commit 1fe5b9c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion lib/matplotlib/__init__.py
Expand Up @@ -872,7 +872,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
12 changes: 6 additions & 6 deletions lib/matplotlib/axis.py
Expand Up @@ -996,19 +996,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/mpl_toolkits/axes_grid1/anchored_artists.py
Expand Up @@ -119,7 +119,7 @@ def __init__(self, transform, size, label, loc,
>>> import matplotlib.font_manager as fm
>>> fontprops = fm.FontProperties(size=14, family='monospace')
>>> 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
>>> 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)
"""

Expand Down

0 comments on commit 1fe5b9c

Please sign in to comment.