Revision: 8283 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8283&view=rev Author: efiring Date: 2010-04-28 19:44:47 +0000 (Wed, 28 Apr 2010)
Log Message: ----------- Applied whitespace patch by Mark Roddy; closes 2993733. Modified Paths: -------------- trunk/matplotlib/examples/api/span_regions.py trunk/matplotlib/examples/pylab_examples/usetex_demo.py trunk/matplotlib/lib/matplotlib/backends/backend_cairo.py trunk/matplotlib/lib/matplotlib/backends/backend_tkagg.py trunk/matplotlib/lib/matplotlib/mlab.py trunk/matplotlib/lib/matplotlib/pylab.py trunk/matplotlib/lib/mpl_toolkits/mplot3d/axes3d.py trunk/matplotlib/release/win32/data/setupwin.py trunk/matplotlib/release/win32/data/setupwinegg.py Modified: trunk/matplotlib/examples/api/span_regions.py =================================================================== --- trunk/matplotlib/examples/api/span_regions.py 2010-04-28 19:17:17 UTC (rev 8282) +++ trunk/matplotlib/examples/api/span_regions.py 2010-04-28 19:44:47 UTC (rev 8283) @@ -21,11 +21,11 @@ ax.axhline(0, color='black', lw=2) collection = collections.BrokenBarHCollection.span_where( - t, ymin=0, ymax=1, where=s1>0, facecolor='green', alpha=0.5) + t, ymin=0, ymax=1, where=s1>0, facecolor='green', alpha=0.5) ax.add_collection(collection) collection = collections.BrokenBarHCollection.span_where( - t, ymin=-1, ymax=0, where=s1<0, facecolor='red', alpha=0.5) + t, ymin=-1, ymax=0, where=s1<0, facecolor='red', alpha=0.5) ax.add_collection(collection) Modified: trunk/matplotlib/examples/pylab_examples/usetex_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/usetex_demo.py 2010-04-28 19:17:17 UTC (rev 8282) +++ trunk/matplotlib/examples/pylab_examples/usetex_demo.py 2010-04-28 19:44:47 UTC (rev 8283) @@ -41,8 +41,8 @@ pylab.yticks((0, 0.5, 1), ('0', '.5', '1'), color = 'k', size = 20) ## Right Y-axis labels -pylab.text(1.05, 0.5, r"\bf{level set} $\phi$", {'color' : 'g', 'fontsize' : 20}, - horizontalalignment = 'left', +pylab.text(1.05, 0.5, r"\bf{level set} $\phi$", {'color' : 'g', 'fontsize' : 20}, + horizontalalignment = 'left', verticalalignment = 'center', rotation = 90, clip_on = False) Modified: trunk/matplotlib/lib/matplotlib/backends/backend_cairo.py =================================================================== --- trunk/matplotlib/lib/matplotlib/backends/backend_cairo.py 2010-04-28 19:17:17 UTC (rev 8282) +++ trunk/matplotlib/lib/matplotlib/backends/backend_cairo.py 2010-04-28 19:44:47 UTC (rev 8283) @@ -138,8 +138,8 @@ def draw_path(self, gc, path, transform, rgbFace=None): - if len(path.vertices) > 18980: - raise ValueError("The Cairo backend can not draw paths longer than 18980 points.") + if len(path.vertices) > 18980: + raise ValueError("The Cairo backend can not draw paths longer than 18980 points.") ctx = gc.ctx @@ -148,7 +148,7 @@ ctx.new_path() self.convert_path(ctx, path, transform) - + self._fill_and_stroke(ctx, rgbFace, gc.get_alpha()) def draw_image(self, gc, x, y, im): Modified: trunk/matplotlib/lib/matplotlib/backends/backend_tkagg.py =================================================================== --- trunk/matplotlib/lib/matplotlib/backends/backend_tkagg.py 2010-04-28 19:17:17 UTC (rev 8282) +++ trunk/matplotlib/lib/matplotlib/backends/backend_tkagg.py 2010-04-28 19:44:47 UTC (rev 8283) @@ -241,7 +241,7 @@ self._resize_callback(event) # compute desired figure size in inches - dpival = self.figure.dpi + dpival = self.figure.dpi winch = width/dpival hinch = height/dpival self.figure.set_size_inches(winch, hinch) Modified: trunk/matplotlib/lib/matplotlib/mlab.py =================================================================== --- trunk/matplotlib/lib/matplotlib/mlab.py 2010-04-28 19:17:17 UTC (rev 8282) +++ trunk/matplotlib/lib/matplotlib/mlab.py 2010-04-28 19:44:47 UTC (rev 8283) @@ -2309,11 +2309,11 @@ if needheader: while 1: - # skip past any comments and consume one line of column header - row = reader.next() - if len(row) and row[0].startswith(comments): - continue - break + # skip past any comments and consume one line of column header + row = reader.next() + if len(row) and row[0].startswith(comments): + continue + break # iterate over the remaining rows and convert the data to date # objects, ints, or floats as approriate Modified: trunk/matplotlib/lib/matplotlib/pylab.py =================================================================== --- trunk/matplotlib/lib/matplotlib/pylab.py 2010-04-28 19:17:17 UTC (rev 8282) +++ trunk/matplotlib/lib/matplotlib/pylab.py 2010-04-28 19:44:47 UTC (rev 8283) @@ -252,7 +252,7 @@ import numpy.ma as ma def load(*args, **kwargs): - raise NotImplementedError(load.__doc__) + raise NotImplementedError(load.__doc__) load.__doc__ = """\ pylab no longer provides a load function, though the old pylab function is still available as matplotlib.mlab.load (you can refer @@ -265,7 +265,7 @@ def save(*args, **kwargs): - raise NotImplementedError(save.__doc__) + raise NotImplementedError(save.__doc__) save.__doc__ = """\ pylab no longer provides a save function, though the old pylab function is still available as matplotlib.mlab.save (you can still Modified: trunk/matplotlib/lib/mpl_toolkits/mplot3d/axes3d.py =================================================================== --- trunk/matplotlib/lib/mpl_toolkits/mplot3d/axes3d.py 2010-04-28 19:17:17 UTC (rev 8282) +++ trunk/matplotlib/lib/mpl_toolkits/mplot3d/axes3d.py 2010-04-28 19:44:47 UTC (rev 8283) @@ -779,7 +779,7 @@ shade = np.array(shade) mask = ~np.isnan(shade) - if len(shade[mask]) > 0: + if len(shade[mask]) > 0: norm = Normalize(min(shade[mask]), max(shade[mask])) if art3d.iscolor(color): color = color.copy() Modified: trunk/matplotlib/release/win32/data/setupwin.py =================================================================== --- trunk/matplotlib/release/win32/data/setupwin.py 2010-04-28 19:17:17 UTC (rev 8282) +++ trunk/matplotlib/release/win32/data/setupwin.py 2010-04-28 19:44:47 UTC (rev 8283) @@ -1,12 +1,12 @@ from distutils import cygwinccompiler try: - # Python 2.6 - # Replace the msvcr func to return an [] - cygwinccompiler.get_msvcr - cygwinccompiler.get_msvcr = lambda: [] + # Python 2.6 + # Replace the msvcr func to return an [] + cygwinccompiler.get_msvcr + cygwinccompiler.get_msvcr = lambda: [] except AttributeError: - pass + pass execfile('setup.py') Modified: trunk/matplotlib/release/win32/data/setupwinegg.py =================================================================== --- trunk/matplotlib/release/win32/data/setupwinegg.py 2010-04-28 19:17:17 UTC (rev 8282) +++ trunk/matplotlib/release/win32/data/setupwinegg.py 2010-04-28 19:44:47 UTC (rev 8283) @@ -1,13 +1,13 @@ from distutils import cygwinccompiler try: - # Python 2.6 - # Replace the msvcr func to return an empty list - cygwinccompiler.get_msvcr - cygwinccompiler.get_msvcr = lambda: [] + # Python 2.6 + # Replace the msvcr func to return an empty list + cygwinccompiler.get_msvcr + cygwinccompiler.get_msvcr = lambda: [] except AttributeError: - pass + pass from setuptools import setup execfile('setup.py', This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ _______________________________________________ Matplotlib-checkins mailing list Matplotlib-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins