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

Skip to content

Commit a93634d

Browse files
committed
added quiver demo
svn path=/trunk/matplotlib/; revision=1100
1 parent 41cfa2b commit a93634d

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

examples/quiver_demo.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
from pylab import *
3+
4+
X,Y = meshgrid( arange(0,2*pi,.2),arange(0,2*pi,.2) )
5+
U = cos(X)
6+
V = sin(Y)
7+
8+
quiver( X, Y, U, V, 0.2, color=True )
9+
show()
10+
11+
quiver( U, V, 0.3 )
12+
show()
13+
14+
quiver( U, V, color=True )
15+
show()
16+
17+
quiver( U, V, color=U+V )
18+
show()
19+
20+
quiver( X, Y, U, V )
21+
show()
22+

0 commit comments

Comments
 (0)