| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
3.9.5 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="") color from palette is used (see section Pallete and colors). Also you can use gradient filling if number of specified colors is equal to 2*number of curves. See also Area, Bars, Stem. See section Region sample, for sample code and picture.
- Method on
mglGraph(C++, Python):voidRegion (const mglData &x,const mglData &y1,const mglData &y2,const char *pen="",floatzVal=NAN,boolinside=true) - C function:
voidmgl_region_xy (HMGLgr,const HMDTx,const HMDTy1,const HMDTy2,const char *pen,intinside) The function fills area between curves {x[i], y1[i]} and {x[i], y2[i]} at z=zVal. Parameter
inside=falseset to fill are with y1<y<y2 else the area with y2<y<y1 will be also filled.
- Method on
mglGraph(C++, Python):voidRegion (const mglData &y1,const mglData &y2,const char *pen="",floatzVal=NAN,boolinside=true) - C function:
voidmgl_region (HMGLgr,const HMDTy1,const HMDTy2,const char *pen,intinside) The function fills area between curves {x[i], y1[i]} and {x[i], y2[i]}, where x[i] values are equidistantly distributed in interval [Min.x, Max.x] at z=zVal.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
