Plots a 3Dvector field from three arrays.
vy A 3D array containing the y-component of the vector field, or an n-element vector containing the y-component of the vector field.
vz A 3D array containing the z-component of the vector field, or an n-element vector containing the z-component of the vector field.
NOTE: The arrays vx, vy, and vz must be the same size.
If vx, vy, and vz have the dimensions (i, j, k), then:
n_points(1,*) should range between 0 and j - 1
n_points(2,*) should range between 0 and k - 1
If vx, vy, and vz are all 3D arrays and n_points is zero or negative, then one vector is plotted for each element in vx.
If vx, vy, and vz are n-element vectors and n_points is a (3, n) array, then the starting locations for each vector are taken from n_points.
Mark_Color The color index to use when plotting the markers.
Mark_Size The marker size.
Mark_Symbol A number ranging from 1 to 7 defining the marker symbol to use. The default is 3 (a period). Markers are plotted at the tail of each vector. For a list of symbols, see the description of !Psym in Chapter 4, System Variables.
Max_Color The highest color index to use when plotting.
PRO vec_demo1
winx = 800 winy = 600
v_num = 1000
xvec = FLTARR(v_num) yvec = FLTARR(v_num) zvec = FLTARR(v_num) points = FLTARR(3, v_num)
FOR k=0, 9 DO BEGIN
FOR j=0, 9 DO BEGIN
FOR i=0, 9 DO BEGIN
ind = i + (j * 10) + (k * 10 * 10)
xvec(ind) = COS(!PI * FLOAT(i)/10.0)
yvec(ind) = SIN(!PI * FLOAT(j)/10.0)
zvec(ind) = SIN(!PI * FLOAT(k)/10.0)$ + COS(!PI * FLOAT(i)/10.0)
points(*, ind) = [i, j, k]
ENDFOR
ENDFOR
ENDFOR
T3D, /Reset T3D, Translate=[-0.5, -0.5, -0.5] T3D, Scale=[0.5, 0.5, 0.5] T3D, Rotate=[0.0, 0.0, -30.0] T3D, Rotate=[-60.0, 0.0, 0.0] T3D, Translate=[0.5, 0.5, 0.5]
WINDOW, 0, XSize=winx, YSize=winy, $ XPos=256, YPos=128, Colors=128, $ Title='3-D Velocity Vector Field' LOADCT, 4
VECTOR_FIELD3, xvec, yvec, zvec, points, $ Max_Length=0.5, Min_Color=32, $ Max_Color=127, Axis_Color=100, $ Mark_Symbol=3, Mark_Color=127, $ Mark_Size=0.5, Thick=2
xvec
,
; yvec
, and zvec
, and the vector starting points defined by
; points
.
END
vec_demo2
and vol_demo1
demonstration programs in:
wavedir/demo/arl
wavedir:[DEMO.ARL]
wavedir\demo\arl
wavedir
is the main PV-WAVE directory.