manpagez: man pages & more
info mathgl
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

9.13.2 VectC (Python)

Method on mglGraph (Python): void VectC (mglData x, mglData y, mglData ax, mglData ay, const char *sch=NULL, float zVal=NAN)

The function draws plane vector field plot for the field {ax, ay} depending parametrically on coordinates x, y at level z=zVal. The color of hachures is proportional to \sqrt{ax^2+ay^2}. The number of hachures depend on MeshNum (see section Other settings). The color is specified by the string argument sch. Previous color scheme is used by default. 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 Vect, Flow, Dew. See section VectC sample, for sample code and picture.

Method on mglGraph (Python): void VectC (mglData ax, mglData ay, const char *sch=NULL, float zVal=NAN)

The same as previous with x, y equidistantly distributed in interval [Min, Max].

Method on mglGraph (Python): void VectC (mglData x, mglData y, mglData z, mglData ax, mglData ay, mglData az, const char *sch=NULL)

This is 3D version of the first functions. Here arrays ax, ay, az must be 3-ranged tensors with equal sizes and the color of hachures is proportional to \sqrt{ax^2+ay^2+az^2}. See section VectC 3D sample, for sample code and picture.

Method on mglGraph (Python): void VectC (mglData ax, mglData ay, mglData az, const char *sch=NULL)

The same as previous with x, y equidistantly distributed in interval [Min, Max].


© manpagez.com 2000-2026
Individual documents may contain additional copyright information.