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

8.11 3D plotting (MGL)

These commands perform plotting of 3D data. 3D means that data depend from 3 independent parameters like matrix f(x_i,y_j,z_k), i=1...n, j=1...m, k=1...l. There are 4 generally different types of data representations: isosurface or surface of constant value (surf3), density plot at slices (Dens3), contour lines plot at slices (cont3), solid contours plot at slices (contf3) and cloud-like plot (cloud). Commands surf3, cont3 and contf3 have variants for automatic and manual selection of level values for surfaces/contours. Also there are commands for plotting data grid lines according to the data format (grid3) for enhancing density or contour plots. 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. See section 3D plot sample, for sample code and picture.

String paramter sch sets the color scheme (see section Color scheme). Previous color scheme is used by default. Arrays x, y, z can be vectors (not 3d arrays as a). If array xdat, ydat, zdat is not specified then its an automatic arrays are used with values equidistantly distributed along x, y, z.

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

Draws isosurface plot for 3d array specified parametrically adat[i,j,k](xdat[i,j,k], ydat[i,j,k], zdat[i,j,k]) at a(x,y,z)=val. If string contain ‘#’ then wire plot is produced. See also cloud, dens3, surf3c, surf3a, axial. See section Surf3 sample, for sample code and picture.

MGL command: surf3 adat ['sch'='' num=5]
MGL command: surf3 xdat ydat zdat adat ['sch'='' num=5]

Draws num-th uniformly distributed in color range (see caxis) isosurfaces for 3d data specified parametrically.

MGL command: dens3 adat 'dir' [sval=-1 'sch'='']
MGL command: dens3 xdat ydat zdat adat 'dir' [sval=-1 'sch'='']

Draws density plot for 3d array specified parametrically adat[i,j,k](xdat[i,j,k], ydat[i,j,k], zdat[i,j,k]). Density is plotted at slice sval in dir={‘x’, ‘y’, ‘z’} direction. If string stl have symbol ‘#’ then grid lines are drawn. See also cont3, contf3, dens, grid3. See section Dens3 sample, for sample code and picture.

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

Draws density plots at all central slices of the 3d data specified parametrically.

MGL command: cont3 vdat adat 'dir' [sval=-1 'sch'='']
MGL command: cont3 vdat xdat ydat zdat adat 'dir' [sval=-1 'sch'='']

Draws contour plot for 3d array specified parametrically adat[i,j,k](xdat[i,j,k], ydat[i,j,k], zdat[i,j,k]). Contours are plotted for values specified in array vdat at slice sval in dir={‘x’, ‘y’, ‘z’} direction. If string stl have symbol ‘#’ then grid lines are drawn. If string stl contain ’t’ (or ’T’) symbol then contour labels will be drawn below (or above) the contours. See also dens3, contf3, cont, grid3. See section Cont3 sample, for sample code and picture.

MGL command: cont3 adat 'dir' [sval=-1 'sch'='' num=7]
MGL command: cont3 xdat ydat zdat adat 'dir' [sval=-1 'sch'='' num=7]

The same as previous one with vector vdat of num-th elements equidistantly distributed in color range (see caxis).

MGL command: conta adat ['sch'='' num=7]
MGL command: conta xdat ydat zdat adat ['sch'='' num=7]

Draws contour plots at all central slices of the 3d data specified parametrically.

MGL command: contf3 vdat adat 'dir' [sval=-1 'sch'='']
MGL command: contf3 vdat xdat ydat zdat adat 'dir' [sval=-1 'sch'='']

Draws solid contour plot for 3d array specified parametrically adat[i,j,k](xdat[i,j,k], ydat[i,j,k], zdat[i,j,k]). Contours are plotted for values specified in array vdat at slice sval in dir={‘x’, ‘y’, ‘z’} direction. If string stl have symbol ‘#’ then grid lines are drawn. See also dens3, cont3, contf, grid3. See section ContF3 sample, for sample code and picture.

MGL command: contf3 adat 'dir' [sval=-1 'sch'='' num=7]
MGL command: contf3 xdat ydat zdat adat 'dir' [sval=-1 'sch'='' num=7]

The same as previous one with vector vdat of num-th elements equidistantly distributed in color range (see caxis).

MGL command: contfa adat ['sch'='' num=7]
MGL command: contfa xdat ydat zdat adat ['sch'='' num=7]

Draws solid contour plots at all central slices of the 3d data specified parametrically.

MGL command: grid3 adat 'dir' [sval=-1 'sch'='']
MGL command: grid3 xdat ydat zdat adat 'dir' [sval=-1 'sch'='']

Draws grid for 3d array specified parametrically adat[i,j,k](xdat[i,j,k], ydat[i,j,k], zdat[i,j,k]). Grid is plotted at slice sval in dir={‘x’, ‘y’, ‘z’} direction. See also cont3, contf3, dens3, grid2. See section Dens3 sample, for sample code and picture.

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

Draws grids at all central slices of the 3d data specified parametrically.

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

Draws cloud for 3d array specified parametrically adat[i,j,k](xdat[i,j,k], ydat[i,j,k], zdat[i,j,k]). This plot is a set of cubes with color and transparency proportional to value of adat. The resulting plot is like cloud – low value is transparent but higher ones are not. The number of plotting cells depend on meshnum. Paramater alpha changes the overall transparency of plot. See also surf3. See section Cloud sample, for sample code and picture.

MGL command: beam tr g1 g2 adat rval ['sch'='' flag=0 num=3]

Draws num-th uniformly distributed in color range (see caxis) isosurfaces for 3d array adat. This is special kind of plot for adat specified in accompanied coordinates along curve tr with orts g1, g2 and with transverse scale rval. Variable flag is bitwise: ‘0x1’ - draw in accompanied (not laboratory) coordinates; ‘0x2’ - draw projection to \rho-z plane; ‘0x4’ - draw normalized in each slice field. The x-size of data arrays tr, g1, g2 must be nx>2. The y-size of data arrays tr, g1, g2 and z-size of the data array a must be equal. See also surf3.


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