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

Skip to content

Commit ca65082

Browse files
committed
Fixed autopep8 issues.
1 parent 3de4e9f commit ca65082

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

examples/pylab_examples/quiver_demo.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
fontproperties={'weight': 'bold'})
2424
l, r, b, t = plt.axis()
2525
dx, dy = r - l, t - b
26-
plt.axis([l - 0.05 * dx, r + 0.05 * dx, b - 0.05 * dy, t + 0.05 * dy])
26+
plt.axis([l - 0.05*dx, r + 0.05*dx, b - 0.05*dy, t + 0.05*dy])
2727

2828
plt.title('Minimal arguments, no kwargs')
2929

@@ -41,14 +41,8 @@
4141
plt.figure()
4242
Q = plt.quiver(X[::3, ::3], Y[::3, ::3], U[::3, ::3], V[::3, ::3],
4343
pivot='mid', color='r', units='inches')
44-
qk = plt.quiverkey(
45-
Q,
46-
0.5,
47-
0.03,
48-
1,
49-
r'$1 \frac{m}{s}$',
50-
fontproperties={
51-
'weight': 'bold'})
44+
qk = plt.quiverkey(Q, 0.5, 0.03, 1, r'$1 \frac{m}{s}$',
45+
fontproperties={'weight': 'bold'})
5246
plt.plot(X[::3, ::3], Y[::3, ::3], 'k.')
5347
plt.axis([-1, 7, -1, 7])
5448
plt.title("pivot='mid'; every third arrow; units='inches'")

0 commit comments

Comments
 (0)