Skip to content

Commit 5cba226

Browse files
committed
fix trailing whitespace
1 parent 340ef8d commit 5cba226

File tree

16 files changed

+29
-29
lines changed

16 files changed

+29
-29
lines changed

examples/misc/svg_filter_pie.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
The pie chart drawing code is borrowed from pie_demo.py
44
55
Note that the filtering effects are only effective if your svg rederer
6-
support it.
6+
support it.
77
"""
88

99

@@ -62,16 +62,16 @@
6262
<filter id='dropshadow' height='1.2' width='1.2'>
6363
<feGaussianBlur result='blur' stdDeviation='2'/>
6464
</filter>
65-
65+
6666
<filter id='MyFilter' filterUnits='objectBoundingBox' x='0' y='0' width='1' height='1'>
6767
<feGaussianBlur in='SourceAlpha' stdDeviation='4%' result='blur'/>
6868
<feOffset in='blur' dx='4%' dy='4%' result='offsetBlur'/>
69-
<feSpecularLighting in='blur' surfaceScale='5' specularConstant='.75'
69+
<feSpecularLighting in='blur' surfaceScale='5' specularConstant='.75'
7070
specularExponent='20' lighting-color='#bbbbbb' result='specOut'>
7171
<fePointLight x='-5000%' y='-10000%' z='20000%'/>
7272
</feSpecularLighting>
7373
<feComposite in='specOut' in2='SourceAlpha' operator='in' result='specOut'/>
74-
<feComposite in='SourceGraphic' in2='specOut' operator='arithmetic'
74+
<feComposite in='SourceGraphic' in2='specOut' operator='arithmetic'
7575
k1='0' k2='1' k3='1' k4='0'/>
7676
</filter>
7777
</defs>

examples/mplot3d/mixed_subplots_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def f(t):
2323
fig = plt.figure(figsize=plt.figaspect(2.))
2424
fig.suptitle('A tale of 2 subplots')
2525
ax = fig.add_subplot(2, 1, 1)
26-
l = ax.plot(t1, f(t1), 'bo',
26+
l = ax.plot(t1, f(t1), 'bo',
2727
t2, f(t2), 'k--', markerfacecolor='green')
2828
ax.grid(True)
2929
ax.set_ylabel('Damped oscillation')

examples/pylab_examples/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Here are some demos of how to use the matplotlib.
1+
Here are some demos of how to use the matplotlib.
22

33

44
-- data_helper.py - a convenience module to load some data from the

examples/pylab_examples/broken_axis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
0.043, 0.021, 0.138, 0.075, 0.109, 0.195, 0.05 , 0.074, 0.079,
1212
0.155, 0.02 , 0.01 , 0.061, 0.008])
1313

14-
# Now let's make two outlier points which are far away from everything.
14+
# Now let's make two outlier points which are far away from everything.
1515
pts[[3, 14]] += .8
1616

1717
# If we were to simply plot pts, we'd lose most of the interesting

examples/pylab_examples/demo_text_path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def draw(self, renderer=None):
9292

9393
p1 = PathPatch(text_path, ec="w", lw=3, fc="w", alpha=0.9,
9494
transform=IdentityTransform())
95-
p2 = PathPatch(text_path, ec="none", fc="k",
95+
p2 = PathPatch(text_path, ec="none", fc="k",
9696
transform=IdentityTransform())
9797

9898
offsetbox2 = AuxTransformBox(IdentityTransform())

examples/pylab_examples/fancybox_demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
def draw_bbox(ax, bb):
1111
# boxstyle=square with pad=0, i.e. bbox itself.
1212
p_bbox = FancyBboxPatch((bb.xmin, bb.ymin),
13-
abs(bb.width), abs(bb.height),
13+
abs(bb.width), abs(bb.height),
1414
boxstyle="square,pad=0.",
1515
ec="k", fc="none", zorder=10.,
1616
)
@@ -113,7 +113,7 @@ def test4(ax):
113113
p_fancy = FancyBboxPatch((bb.xmin, bb.ymin),
114114
abs(bb.width), abs(bb.height),
115115
boxstyle="round,pad=0.3",
116-
mutation_aspect=.5,
116+
mutation_aspect=.5,
117117
fc=(1., 0.8, 1.),
118118
ec=(1., 0.5, 1.))
119119

examples/pylab_examples/fancytextbox_demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import matplotlib.pyplot as plt
22

33
plt.text(0.6, 0.5, "test", size=50, rotation=30.,
4-
ha="center", va="center",
4+
ha="center", va="center",
55
bbox=dict(boxstyle="round",
66
ec=(1., 0.5, 0.5),
77
fc=(1., 0.8, 0.8),
88
)
99
)
1010

1111
plt.text(0.5, 0.4, "test", size=50, rotation=-30.,
12-
ha="right", va="top",
12+
ha="right", va="top",
1313
bbox=dict(boxstyle="square",
1414
ec=(1., 0.5, 0.5),
1515
fc=(1., 0.8, 0.8),

examples/pylab_examples/hexbin_demo2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
gridsize = 30
4040

4141
plt.subplot(211)
42-
plt.hexbin(x, y, C=z, gridsize=gridsize, marginals=True, cmap=plt.cm.RdBu,
42+
plt.hexbin(x, y, C=z, gridsize=gridsize, marginals=True, cmap=plt.cm.RdBu,
4343
vmax=abs(z).max(), vmin=-abs(z).max())
4444
plt.axis([xmin, xmax, ymin, ymax])
4545
cb = plt.colorbar()

examples/pylab_examples/image_nonuniform.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
fig = figure()
2121
fig.suptitle('NonUniformImage class')
2222
ax = fig.add_subplot(221)
23-
im = NonUniformImage(ax, interpolation=interp, extent=(-4, 4, -4, 4),
23+
im = NonUniformImage(ax, interpolation=interp, extent=(-4, 4, -4, 4),
2424
cmap=cm.Purples)
2525
im.set_data(x, y, z)
2626
ax.images.append(im)
@@ -29,7 +29,7 @@
2929
ax.set_title(interp)
3030

3131
ax = fig.add_subplot(222)
32-
im = NonUniformImage(ax, interpolation=interp, extent=(-64, 64, -4, 4),
32+
im = NonUniformImage(ax, interpolation=interp, extent=(-64, 64, -4, 4),
3333
cmap=cm.Purples)
3434
im.set_data(x2, y, z)
3535
ax.images.append(im)
@@ -40,7 +40,7 @@
4040
interp = 'bilinear'
4141

4242
ax = fig.add_subplot(223)
43-
im = NonUniformImage(ax, interpolation=interp, extent=(-4, 4, -4, 4),
43+
im = NonUniformImage(ax, interpolation=interp, extent=(-4, 4, -4, 4),
4444
cmap=cm.Purples)
4545
im.set_data(x, y, z)
4646
ax.images.append(im)
@@ -49,7 +49,7 @@
4949
ax.set_title(interp)
5050

5151
ax = fig.add_subplot(224)
52-
im = NonUniformImage(ax, interpolation=interp, extent=(-64, 64, -4, 4),
52+
im = NonUniformImage(ax, interpolation=interp, extent=(-64, 64, -4, 4),
5353
cmap=cm.Purples)
5454
im.set_data(x2, y, z)
5555
ax.images.append(im)

examples/pylab_examples/multiple_yaxis_with_spines.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ def make_patch_spines_invisible(ax):
1616
# Offset the right spine of par2. The ticks and label have already been
1717
# placed on the right by twinx above.
1818
par2.spines["right"].set_position(("axes", 1.2))
19-
# Having been created by twinx, par2 has its frame off, so the line of its
20-
# detached spine is invisible. First, activate the frame but make the patch
19+
# Having been created by twinx, par2 has its frame off, so the line of its
20+
# detached spine is invisible. First, activate the frame but make the patch
2121
# and spines invisible.
2222
make_patch_spines_invisible(par2)
2323
# Second, show the right spine.

0 commit comments

Comments
 (0)