Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ed31fee

Browse files
committed
fix E222 pep8 errors
Signed-off-by: Thomas Hisch <[email protected]>
1 parent 19eeb22 commit ed31fee

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

examples/event_handling/pipong.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def __init__(self, disp, pad, field):
6262
def _reset(self,pad):
6363
self.x = pad.x + pad.xoffset
6464
if pad.y < 0:
65-
self.y = pad.y + pad.yoffset
65+
self.y = pad.y + pad.yoffset
6666
else:
6767
self.y = pad.y - pad.yoffset
6868
self.vx = pad.x - self.x

examples/misc/font_indexing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
coded[name] = ccode
3131
glyphd[name] = glyphind
3232

33-
code = coded['A']
33+
code = coded['A']
3434
glyph = font.load_char(code)
3535
#print glyph.bbox
3636
print(glyphd['A'], glyphd['V'], coded['A'], coded['V'])

examples/misc/rc_traits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def hex_to_rgba(ob, name, val):
8383

8484
def colorname_to_rgba(ob, name, val):
8585
hex = colors[val.lower()]
86-
r,g,b = hex2color(hex)
86+
r,g,b = hex2color(hex)
8787
return RGBA(r,g,b,1.0)
8888
colorname_to_rgba.info = 'a named color'
8989

examples/pylab_examples/anchored_artists.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def __init__(self, width, height, xdescent, ydescent,
9898

9999
# draw a horizontal bar with length of 0.1 in Data coordinate
100100
# (ax.transData) with a label underneath.
101-
asb = AnchoredSizeBar(ax.transData,
101+
asb = AnchoredSizeBar(ax.transData,
102102
0.1,
103103
r"1$^{\prime}$",
104104
loc=8,

examples/pylab_examples/anscombe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
from pylab import *
1313

14-
x = array([10, 8, 13, 9, 11, 14, 6, 4, 12, 7, 5])
14+
x = array([10, 8, 13, 9, 11, 14, 6, 4, 12, 7, 5])
1515
y1 = array([8.04, 6.95, 7.58, 8.81, 8.33, 9.96, 7.24, 4.26, 10.84, 4.82, 5.68])
1616
y2 = array([9.14, 8.14, 8.74, 8.77, 9.26, 8.10, 6.13, 3.10, 9.13, 7.26, 4.74])
1717
y3 = array([7.46, 6.77, 12.74, 7.11, 7.81, 8.84, 6.08, 5.39, 8.15, 6.42, 5.73])

examples/pylab_examples/coords_report.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
def millions(x):
99
return '$%1.1fM' % (x*1e-6)
1010

11-
x = rand(20)
12-
y = 1e7*rand(20)
11+
x = rand(20)
12+
y = 1e7*rand(20)
1313

1414
fig, ax = subplots()
1515
ax.fmt_ydata = millions

examples/pylab_examples/custom_ticker1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import matplotlib.pyplot as plt
1515
import numpy as np
1616

17-
x = np.arange(4)
17+
x = np.arange(4)
1818
money = [1.5e5, 2.5e6, 5.5e6, 2.0e7]
1919

2020

examples/pylab_examples/finance_work2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def moving_average(x, n, type='simple'):
3636

3737
weights /= weights.sum()
3838

39-
a = np.convolve(x, weights, mode='full')[:len(x)]
39+
a = np.convolve(x, weights, mode='full')[:len(x)]
4040
a[:n] = a[n]
4141
return a
4242

examples/units/bar_unit_demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
N = 5
88
menMeans = (150*cm, 160*cm, 146*cm, 172*cm, 155*cm)
9-
menStd = ( 20*cm, 30*cm, 32*cm, 10*cm, 20*cm)
9+
menStd = ( 20*cm, 30*cm, 32*cm, 10*cm, 20*cm)
1010

1111
fig, ax = plt.subplots()
1212

@@ -16,7 +16,7 @@
1616

1717

1818
womenMeans = (145*cm, 149*cm, 172*cm, 165*cm, 200*cm)
19-
womenStd = (30*cm, 25*cm, 20*cm, 31*cm, 22*cm)
19+
womenStd = (30*cm, 25*cm, 20*cm, 31*cm, 22*cm)
2020
p2 = ax.bar(ind+width, womenMeans, width, color='y', bottom=0*cm, yerr=womenStd)
2121

2222
ax.set_title('Scores by group and gender')

0 commit comments

Comments
 (0)