diff --git a/lib/matplotlib/animation.py b/lib/matplotlib/animation.py index 0009706a8d05..3909b462e431 100644 --- a/lib/matplotlib/animation.py +++ b/lib/matplotlib/animation.py @@ -1814,7 +1814,7 @@ def _draw_frame(self, framedata): self._drawn_artists = self._func(framedata, *self._args) if self._blit: if self._drawn_artists is None: - raise RuntimeError('The animation function must return a ' - 'sequence of Artist objects.') + raise RuntimeError('The animation function must return a ' + 'sequence of Artist objects.') for a in self._drawn_artists: a.set_animated(self._blit) diff --git a/lib/matplotlib/lines.py b/lib/matplotlib/lines.py index 057a03291a25..4fcbb1bf382f 100644 --- a/lib/matplotlib/lines.py +++ b/lib/matplotlib/lines.py @@ -877,7 +877,7 @@ def get_markeredgecolor(self): if self._marker.get_marker() in ('.', ','): return self._color if self._marker.is_filled() and self.get_fillstyle() != 'none': - return 'k' # Bad hard-wired default... + return 'k' # Bad hard-wired default... return self._color else: return mec diff --git a/lib/mpl_toolkits/exceltools.py b/lib/mpl_toolkits/exceltools.py index 2fae5b273004..22aaef6762dc 100644 --- a/lib/mpl_toolkits/exceltools.py +++ b/lib/mpl_toolkits/exceltools.py @@ -55,9 +55,9 @@ def xlformat_factory(format): xlstyle = excel.XFStyle() if isinstance(format, mlab.FormatPercent): - zeros = ''.join(['0']*format.precision) - xlstyle.num_format_str = '0.%s%%;[RED]-0.%s%%'%(zeros, zeros) - format.scale = 1. + zeros = ''.join(['0']*format.precision) + xlstyle.num_format_str = '0.%s%%;[RED]-0.%s%%'%(zeros, zeros) + format.scale = 1. elif isinstance(format, mlab.FormatFloat): if format.precision>0: zeros = ''.join(['0']*format.precision)