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

8.16.2 ContXYZ (Pure C)

These plotting functions draw density plot in x, y, or z plain. If a is a tensor (3-dimensional data) then interpolation to a given sVal is performed. These functions are useful for creating projections of the 3D data array to the bounding box. For example, code like

 
mgl_cont_x(gr, mgl_data_sum(c,"x"),"BbcyrR",-1,7);
mgl_cont_y(gr, mgl_data_sum(c.Sum("y"),0,1,7);
mgl_cont_z(gr, mgl_data_sum(c.Sum("z"),0,-1,7);

will produce the following picture. See also ContF[XYZ](), Dens[XYZ](), Cont(). See section Cont projection sample, for sample code and picture.

C function: void mgl_cont_x (HMGL gr, const HMDT a, const char *stl, float sVal, int num)

Draws num-th contour lines for data a at x = sVal.

C function: void mgl_cont_y (HMGL gr, const HMDT a, const char *stl, float sVal, int num)

Draws num-th contour lines for data a at y = sVal.

C function: void mgl_cont_z (HMGL gr, const HMDT a, const char *stl, float sVal, int num)

Draws num-th contour lines for data a at z = sVal.

C function: void mgl_cont_x_val (HMGL gr, const HMDT v, const HMDT a, const char *stl, float sVal)

Draws contour lines for data a=v[i] at x = sVal.

C function: void mgl_cont_y_val (HMGL gr, const HMDT v, const HMDT a, const char *stl, float sVal)

Draws contour lines for data a=v[i] at y = sVal.

C function: void mgl_cont_z_val (HMGL gr, const HMDT v, const HMDT a, const char *stl, float sVal)

Draws contour lines for data a=v[i] at z = sVal.


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