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

3.9.3 Region

These functions fill area between 2 curves. The plots are drawn for each row if one of the data is the matrix. By any case the sizes of 1st dimension must be equal for all arrays x.nx=y1.nx=y2.nx and all dimensions of arrays y1 and y2 must be equal too. String pen specifies the color (see section Line styles). By default (pen=NULL) color from palette is used (see section Pallete and colors). See also Area, Bars, Stem. See section Region sample, for sample code and picture.

Method on mglGraph: void Region (const mglData &x, const mglData &y1, const mglData &y2, const char *pen=NULL, float zVal=NAN, bool inside=true)

The function fills area between curves {x[i], y[i]} and {x[i], y2[i]} at z=zVal.

Method on mglGraph: void Region (const mglData &y1, const mglData &y2, const char *pen=NULL, float zVal=NAN, bool inside=true)

The function fills area between curves {x[i], y[i]} and {x[i], y2[i]}, where x[i] values are equidistantly distributed in interval [Min.x, Max.x] at z=zVal.


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