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

9.10.8 Cont (Python)

Method on mglGraph (Python): void Cont (mglData v, mglData x, mglData y, mglData z, const char *sch=NULL, float zVal=NAN)

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. 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, Axial, ContXYZ. See section Cont sample, for sample code and picture.

Method on mglGraph (Python): void Cont (mglData v, mglData z, 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 Cont (mglData x, mglData y, mglData z, const char *sch=NULL, int num=7, float zVal=NAN)

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

Method on mglGraph (Python): void Cont (mglData z, const char *sch=NULL, int num=7, float zVal=NAN)

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


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