plots a 2D
random points are picked, and from each point a path is traced along the field. The length of the path is proportional to the field vector magnitude.
This routine is written in the IDL language. Its source code can be found in the file
subdirectory of the IDL distribution.
A 2D array giving the field vector at each point in the U(X) direction.
A 2D array giving the field vector at each point in the V(Y) direction.
Set this keyword to the aspect ratio of the plot (i.e., the ratio of the X size to Y size). The default is 1.0.
Set this keyword to the length of the longest field vector expressed as a fraction of the plotting area. The default is 0.1.
Set this keyword to the number of arrows to draw. The default is 200.
Set this keyword to the title of plot. The default is "Velocity Field".
X = FINDGEN(20, 20)
Y = FINDGEN(20, 20)*3
PLOT_FIELD, X, Y