[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
3.13.2 Vect
- Method on
mglGraph
(C++, Python):void
Vect (const mglData &
x,const mglData &
y,const mglData &
ax,const mglData &
ay,const char *
sch=""
,float
zVal=NAN
,int
flag=0
) - C function:
void
mgl_vect_xy (HMGL
gr,const HMDT
x,const HMDT
y,const HMDT
ax,const HMDT
ay,const char *
sch,float
zVal,int
flag) The function draws plane vector field plot for the field {ax, ay} depending parametrically on coordinates x, y at level z=zVal. The length and color of arrows are proportional to \sqrtax^2+ay^2. The number of arrows depend on MeshNum (see section Other settings). The color is specified by the string argument sch. Previous color scheme is used by default. Parameter flag is bitwise flag for setup the hachures (arrows):
MGL_VEC_COL
for drawing bi-color arrow,MGL_VEC_LEN
for drawing fixed length arrows,MGL_VEC_DOT
for drawing hachures with dots instead of arrows,MGL_VEC_END
for drawing arrows to the cell point,MGL_VEC_MID
for drawing arrows with center at cell point. The size of ax and ay must be equal. The minor dimensions of arrays x, y and ax must be equal too. Arrays x and y can be vectors (not matrices as ax). The vector field is plotted for each z slice of ax, ay. See also VectL, VectC, Flow, Dew. See section Vect sample, for sample code and picture.
- Method on
mglGraph
(C++, Python):void
Vect (const mglData &
ax,const mglData &
ay,const char *
sch=""
,float
zVal=NAN
,int
flag=0
) - C function:
void
mgl_vect_2d (HMGL
gr,const HMDT
ax,const HMDT
ay,const char *
sch,float
zVal,int
flag) The same as previous with x, y equidistantly distributed in interval [Min, Max].
- Method on
mglGraph
(C++, Python):void
Vect (const mglData &
x,const mglData &
y,const mglData &
z,const mglData &
ax,const mglData &
ay,const mglData &
az,const char *
sch=""
,int
flag=0
) - C function:
void
mgl_vect_xyz (HMGL
gr,const HMDT
x,const HMDT
y,const HMDT
z,const HMDT
ax,const HMDT
ay,const HMDT
az,const char *
sch,int
flag) This is 3D version of the first functions. Here arrays ax, ay, az must be 3-ranged tensors with equal sizes and the length and color of arrows is proportional to \sqrtax^2+ay^2+az^2. See section Vect 3D sample, for sample code and picture.
- Method on
mglGraph
(C++, Python):void
Vect (const mglData &
ax,const mglData &
ay,const mglData &
az,const char *
sch=""
,int
flag=0
) - C function:
void
mgl_vect_3d (HMGL
gr,const HMDT
ax,const HMDT
ay,const HMDT
az,const char *
sch,int
flag) The same as previous with x, y equidistantly distributed in interval [Min, Max].
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |