Skip to content

Commit b853fec

Browse files
committed
Remove masked values quiver example
1 parent 8aa1c82 commit b853fec

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

examples/pylab_examples/quiver_demo.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -56,24 +56,4 @@
5656
fontproperties={'weight': 'bold'})
5757
plt.axis([-1, 7, -1, 7])
5858

59-
plt.figure()
60-
plt.title('Minimal arguments, no kwargs - masked values')
61-
62-
M = np.zeros(U.shape, dtype='bool')
63-
XMaskStart = U.shape[0] // 3
64-
YMaskStart = U.shape[1] // 3
65-
XMaskStop = 2 * U.shape[0] // 3
66-
YMaskStop = 2 * U.shape[1] // 3
67-
68-
M[XMaskStart:XMaskStop,
69-
YMaskStart:YMaskStop] = True
70-
U = ma.masked_array(U, mask=M)
71-
V = ma.masked_array(V, mask=M)
72-
Q = plt.quiver(U, V)
73-
qk = plt.quiverkey(Q, 0.5, 0.96, 2, r'$2 \frac{m}{s}$', labelpos='W',
74-
fontproperties={'weight': 'bold'})
75-
l, r, b, t = plt.axis()
76-
dx, dy = r - l, t - b
77-
plt.axis([l - 0.05 * dx, r + 0.05 * dx, b - 0.05 * dy, t + 0.05 * dy])
78-
7959
plt.show()

0 commit comments

Comments
 (0)