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

Skip to content

Commit 156fa27

Browse files
committed
tidied up the slicing on line 84
1 parent fd83166 commit 156fa27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/pylab_examples/quiver_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
# 6
8282
plt.figure()
8383
M = np.zeros(U.shape, dtype='bool')
84-
M[U.shape[0] / 3:2 * U.shape[0] / 3, U.shape[1] / 3:2 * U.shape[1] / 3] = True
84+
M[U.shape[0]/3 : 2*U.shape[0]/3, U.shape[1]/3 : 2*U.shape[1]/3] = True
8585
U = ma.masked_array(U, mask=M)
8686
V = ma.masked_array(V, mask=M)
8787
Q = plt.quiver(U, V)

0 commit comments

Comments
 (0)