Menu

[r1125]: / trunk / htdocs / examples / quiver_demo.py  Maximize  Restore  History

Download this file

23 lines (14 with data), 271 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
from pylab import *
X,Y = meshgrid( arange(0,2*pi,.2),arange(0,2*pi,.2) )
U = cos(X)
V = sin(Y)
quiver( X, Y, U, V, 0.2, color=True )
show()
quiver( U, V, 0.3 )
show()
quiver( U, V, color=True )
show()
quiver( U, V, color=U+V )
show()
quiver( X, Y, U, V )
show()
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.