diff --git a/lib/matplotlib/__init__.py b/lib/matplotlib/__init__.py index 9d711899876d..b02d979709ca 100644 --- a/lib/matplotlib/__init__.py +++ b/lib/matplotlib/__init__.py @@ -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 diff --git a/lib/matplotlib/axis.py b/lib/matplotlib/axis.py index 5304602699b0..e36c8947fa19 100644 --- a/lib/matplotlib/axis.py +++ b/lib/matplotlib/axis.py @@ -1003,9 +1003,9 @@ 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 @@ -1013,9 +1013,9 @@ def _update_ticks(self, renderer): 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 diff --git a/lib/mpl_toolkits/axes_grid1/anchored_artists.py b/lib/mpl_toolkits/axes_grid1/anchored_artists.py index 1fa0effc4f74..bfcfeea344a7 100644 --- a/lib/mpl_toolkits/axes_grid1/anchored_artists.py +++ b/lib/mpl_toolkits/axes_grid1/anchored_artists.py @@ -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) """