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

8.14 Other plotting (MGL)

These commands perform miscelaneous plotting. There is unstructured data points plots (Dots), surface reconstruction (Crust), surfaces on the triangular mesh (TriPlot) or quadrangular mesh (QuadPlot), textual formula plotting (Plots by formula), data plots at edges (Dens[XYZ], Cont[XYZ], ContF[XYZ]), simple plot (SimplePlot). Each type of plotting has similar interface. There are 2 kind of versions which handle the arrays of data and coordinates or only single data array. Parameters of color scheme are specified by the string argument. See section Color scheme.

MGL command: densx dat ['sch'='' val=nan]
MGL command: densy dat ['sch'='' val=nan]
MGL command: densz dat ['sch'='' val=nan]

These plotting commands draw density plot in x, y or z plain. If dat is a tensor (3-dimensional data) then interpolation to a given val is performed. These commands are useful for creating projections of the 3D data array to the bounding box. See also cont[xyz], contf[xyz], dens. See section Dens projection sample, for sample code and picture.

MGL command: contx dat ['sch'='' val=nan num=7]
MGL command: conty dat ['sch'='' val=nan num=7]
MGL command: contz dat ['sch'='' val=nan num=7]

These plotting commands draw contour lines in x, y or z plain. If dat is a tensor (3-dimensional data) then interpolation to a given val is performed. These commands are useful for creating projections of the 3D data array to the bounding box. See also dens[xyz], contf[xyz], cont. See section Cont projection sample, for sample code and picture.

MGL command: contfx dat ['sch'='' val=nan num=7]
MGL command: contfy dat ['sch'='' val=nan num=7]
MGL command: contfz dat ['sch'='' val=nan num=7]

These plotting commands draw solid contours in x, y or z plain. If dat is a tensor (3-dimensional data) then interpolation to a given val is performed. These commands are useful for creating projections of the 3D data array to the bounding box. See also dens[xyz], cont[xyz], contf.

MGL command: dots xdat ydat zdat ['sch'='']
MGL command: dots xdat ydat zdat adat ['sch'='']

Draws the arbitrary placed points {xdat[i], ydat[i], zdat[i]}. Variable adat[i] set transparency for dots. See also crust, mark, plot. See section Dots sample, for sample code and picture.

MGL command: crust xdat ydat zdat ['sch'='']

Reconstructs and draws the surface for arbitrary placed points {xdat[i], ydat[i], zdat[i]}. If string contain ‘#’ then wire plot is produced. See also dots, triplot. See section Crust sample, for sample code and picture.

MGL command: triplot idat xdat ydat ['sch'='' zval=nan]
MGL command: triplot idat xdat ydat zdat ['sch'='']
MGL command: triplot idat xdat ydat zdat cdat ['sch'='']

Draws the surface of triangles. Triangle vertexes are set by indexes idat of data points {xdat[i], ydat[i], zdat[i]}. If string contain ‘#’ then wire plot is produced. First dimensions of idat must be 3 or greater. See also dots, crust, quadplot. Parameter cdat set the colors of triangles (if idat.ny=cdat.nx) or colors of vertexes (if xdat.nx=cdat.nx). See also dots, crust, quadplot, tricont.

MGL command: tricont vdat idat xdat ydat zdat cdat ['sch'='' zval=nan]
MGL command: tricont vdat idat xdat ydat zdat ['sch'='' zval=nan]
MGL command: tricont idat xdat ydat zdat ['sch'='' num=7 zval=nan]

Draws contour lines for surface of triangles at z = zVal (or for z=vdat[k] if zval=nan). Triangle vertexes are set by indexes idat of data points {xdat[i], ydat[i], zdat[i]}. Contours are plotted for zdat[i,j]=vdat[k] for all k (or num contours equidistantly distributed in range [Cmin, Cmax].). See also triplot, cont.

MGL command: quadplot idat xdat ydat ['sch'='' zval=nan]
MGL command: quadplot idat xdat ydat zdat ['sch'='']
MGL command: quadplot idat xdat ydat zdat cdat ['sch'='']

Draws the surface of quadrangles. Quadrangle vertexes are set by indexes idat of data points {xdat[i], ydat[i], zdat[i]}. If string contain ‘#’ then wire plot is produced. First dimensions of idat must be 4 or greater. See also triplot, dots, crust. Parameter cdat set the colors of triangles (if idat.ny=cdat.nx) or colors of vertexes (if xdat.nx=cdat.nx). See also triplot.

MGL command: fplot 'y(x)' ['pen'='' zval=nan num=100]

Draws command function ‘y(x)’ at plane z=zval where ‘x’ variable is changed in xrange. You do not need to create the data arrays to plot it. The parameter num set the minimal number of points along coordinate(s) for plots. See also plot.

MGL command: fplot 'x(t)' 'y(t)' 'z(t)' ['pen'='' num=100]

Draws command parametrical curve {‘x(t)’, ‘y(t)’, ‘z(t)’} where ‘t’ variable is changed in range [0, 1]. You do not need to create the data arrays to plot it. The parameter num set the minimal number of points along coordinate(s) for plots. See also plot.

MGL command: fsurf 'z(x,y)' ['sch'='' num=100]

Draws command surface for function ‘z(x,y)’ where ‘x’, ‘y’ variable are changed in xrange, yrange. You do not need to create the data arrays to plot it. The parameter num set the minimal number of points along coordinate(s) for plots. See also surf.

MGL command: fsurf 'x(u,v)' 'y(u,v)' 'z(u,v)' ['sch'='' num=100]

Draws command parametrical surface {‘x(u,v)’, ‘y(u,v)’, ‘z(u,v)’} where ‘u’, ‘v’ variable are changed in range [0, 1]. You do not need to create the data arrays to plot it. The parameter num set the minimal number of points along coordinate(s) for plots. See also surf.


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