Skip to content

Commit 6981c8f

Browse files
committed
Applied whitespace patch by Mark Roddy; closes 2993733.
svn path=/trunk/matplotlib/; revision=8283
1 parent b273151 commit 6981c8f

File tree

9 files changed

+26
-26
lines changed

9 files changed

+26
-26
lines changed

examples/api/span_regions.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
ax.axhline(0, color='black', lw=2)
2222

2323
collection = collections.BrokenBarHCollection.span_where(
24-
t, ymin=0, ymax=1, where=s1>0, facecolor='green', alpha=0.5)
24+
t, ymin=0, ymax=1, where=s1>0, facecolor='green', alpha=0.5)
2525
ax.add_collection(collection)
2626

2727
collection = collections.BrokenBarHCollection.span_where(
28-
t, ymin=-1, ymax=0, where=s1<0, facecolor='red', alpha=0.5)
28+
t, ymin=-1, ymax=0, where=s1<0, facecolor='red', alpha=0.5)
2929
ax.add_collection(collection)
3030

3131

examples/pylab_examples/usetex_demo.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
pylab.yticks((0, 0.5, 1), ('0', '.5', '1'), color = 'k', size = 20)
4242

4343
## Right Y-axis labels
44-
pylab.text(1.05, 0.5, r"\bf{level set} $\phi$", {'color' : 'g', 'fontsize' : 20},
45-
horizontalalignment = 'left',
44+
pylab.text(1.05, 0.5, r"\bf{level set} $\phi$", {'color' : 'g', 'fontsize' : 20},
45+
horizontalalignment = 'left',
4646
verticalalignment = 'center',
4747
rotation = 90,
4848
clip_on = False)

lib/matplotlib/backends/backend_cairo.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ def convert_path(ctx, path, transform):
138138

139139

140140
def draw_path(self, gc, path, transform, rgbFace=None):
141-
if len(path.vertices) > 18980:
142-
raise ValueError("The Cairo backend can not draw paths longer than 18980 points.")
141+
if len(path.vertices) > 18980:
142+
raise ValueError("The Cairo backend can not draw paths longer than 18980 points.")
143143

144144
ctx = gc.ctx
145145

@@ -148,7 +148,7 @@ def draw_path(self, gc, path, transform, rgbFace=None):
148148

149149
ctx.new_path()
150150
self.convert_path(ctx, path, transform)
151-
151+
152152
self._fill_and_stroke(ctx, rgbFace, gc.get_alpha())
153153

154154
def draw_image(self, gc, x, y, im):

lib/matplotlib/backends/backend_tkagg.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def resize(self, event):
241241
self._resize_callback(event)
242242

243243
# compute desired figure size in inches
244-
dpival = self.figure.dpi
244+
dpival = self.figure.dpi
245245
winch = width/dpival
246246
hinch = height/dpival
247247
self.figure.set_size_inches(winch, hinch)

lib/matplotlib/mlab.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -2309,11 +2309,11 @@ def get_converters(reader):
23092309

23102310
if needheader:
23112311
while 1:
2312-
# skip past any comments and consume one line of column header
2313-
row = reader.next()
2314-
if len(row) and row[0].startswith(comments):
2315-
continue
2316-
break
2312+
# skip past any comments and consume one line of column header
2313+
row = reader.next()
2314+
if len(row) and row[0].startswith(comments):
2315+
continue
2316+
break
23172317

23182318
# iterate over the remaining rows and convert the data to date
23192319
# objects, ints, or floats as approriate

lib/matplotlib/pylab.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@
252252
import numpy.ma as ma
253253

254254
def load(*args, **kwargs):
255-
raise NotImplementedError(load.__doc__)
255+
raise NotImplementedError(load.__doc__)
256256
load.__doc__ = """\
257257
pylab no longer provides a load function, though the old pylab
258258
function is still available as matplotlib.mlab.load (you can refer
@@ -265,7 +265,7 @@ def load(*args, **kwargs):
265265

266266

267267
def save(*args, **kwargs):
268-
raise NotImplementedError(save.__doc__)
268+
raise NotImplementedError(save.__doc__)
269269
save.__doc__ = """\
270270
pylab no longer provides a save function, though the old pylab
271271
function is still available as matplotlib.mlab.save (you can still

lib/mpl_toolkits/mplot3d/axes3d.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ def _shade_colors(self, color, normals):
779779
shade = np.array(shade)
780780
mask = ~np.isnan(shade)
781781

782-
if len(shade[mask]) > 0:
782+
if len(shade[mask]) > 0:
783783
norm = Normalize(min(shade[mask]), max(shade[mask]))
784784
if art3d.iscolor(color):
785785
color = color.copy()

release/win32/data/setupwin.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
from distutils import cygwinccompiler
22

33
try:
4-
# Python 2.6
5-
# Replace the msvcr func to return an []
6-
cygwinccompiler.get_msvcr
7-
cygwinccompiler.get_msvcr = lambda: []
4+
# Python 2.6
5+
# Replace the msvcr func to return an []
6+
cygwinccompiler.get_msvcr
7+
cygwinccompiler.get_msvcr = lambda: []
88

99
except AttributeError:
10-
pass
10+
pass
1111

1212
execfile('setup.py')

release/win32/data/setupwinegg.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
from distutils import cygwinccompiler
22

33
try:
4-
# Python 2.6
5-
# Replace the msvcr func to return an empty list
6-
cygwinccompiler.get_msvcr
7-
cygwinccompiler.get_msvcr = lambda: []
4+
# Python 2.6
5+
# Replace the msvcr func to return an empty list
6+
cygwinccompiler.get_msvcr
7+
cygwinccompiler.get_msvcr = lambda: []
88

99
except AttributeError:
10-
pass
10+
pass
1111

1212
from setuptools import setup
1313
execfile('setup.py',

0 commit comments

Comments
 (0)