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

3.10.8 Cont

Method on mglGraph (C++, Python): void Cont (const mglData &v, const mglData &x, const mglData &y, const mglData &z, const char *sch="", float zVal=NAN)
C function: void mgl_cont_xy_val (HMGL gr, const HMDT v, const HMDT x, const HMDT y, const HMDT z, const char *sch, float zVal)

The function draws contour lines for surface specified parametrically {x[i,j], y[i,j], z[i,j]} at z = zVal (or for z=v[k] if zVal==NAN). Contours are plotted for z[i,j]=v[k] where v[k] are values of data array v. String sch sets the color scheme. Previous color scheme is used by default. If string sch have symbol ‘#’ then grid lines are drawn. If string sch have symbol ‘t’ or ‘T’ then contour labels v[k] will be drawn below (or above) the contours. The minor dimensions of arrays x, y, z should be equal x.nx=z.nx && y.nx=z.ny or x.nx=y.nx=z.nx && x.ny=y.ny=z.ny. Arrays x and y can be vectors (not matrices as z). Surface is plotted for each z slice of the data. See also Dens, ContF, ContD, Axial, ContXYZ. See section Cont sample, for sample code and picture.

Method on mglGraph (C++, Python): void Cont (const mglData &v, const mglData &z, const char *sch="", float zVal=NAN)
C function: void mgl_cont__val (HMGL gr, const HMDT v, const HMDT z, const char *sch, float zVal)

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

Method on mglGraph (C++, Python): void Cont (const mglData &x, const mglData &y, const mglData &z, const char *sch="", int num=7, float zVal=NAN)
C function: void mgl_cont_xy (HMGL gr, const HMDT x, const HMDT y, const HMDT z, const char *sch, int num, float zVal)

The same as first one with vector v of num-th elements equidistantly distributed in range [Cmin, Cmax].

Method on mglGraph (C++, Python): void Cont (const mglData &z, const char *sch="", int num=7, float zVal=NAN)
C function: void mgl_cont (HMGL gr, const HMDT z, const char *sch, int num, float zVal)

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


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]
© manpagez.com 2000-2024
Individual documents may contain additional copyright information.